/    Sign up×
Community /Pin to ProfileBookmark

There are some tags which don’t have a closing tag e.g the break tag <br>. Do these tags have a special name compared to those tags having a closing tag?

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@FangSep 09.2003 — Not really, the use of the closing tag depends if you are scripting for HTML or XHTML.

Both are valid, but XHTML is a newer standard.

Learn the differences [URL=http://www.w3schools.com/default.asp]here[/URL] or for a more detailed view of the standards [URL=http://www.w3.org/MarkUp/]here[/URL]
Copy linkTweet thisAlerts:
@spufiSep 09.2003 — I believe the correct term is an empty tag.
Copy linkTweet thisAlerts:
@96turnerriSep 09.2003 — i think the term is closedtag another xample is <hl>
Copy linkTweet thisAlerts:
@spufiSep 09.2003 — [i]Originally posted by 96turnerri [/i]

[B]i think the term is closedtag another xample is <hl> [/B][/QUOTE]


Incorrect. Opening tag is <h1>. Closing tag is </h1>. You can and should place information between the tags. A tag that doesn't have a closing tag to go with it because there is nothing to define outside of the tag itself is a empty tag. Empty due to no information outside of the tag itself. Using XHTML shows this better. A <br> tag in XHTML is <br />. The tag does what it needs to with no extra information needed outside of the tag.
Copy linkTweet thisAlerts:
@96turnerriSep 09.2003 — sorry my mistake meant <hr>
Copy linkTweet thisAlerts:
@96turnerriSep 09.2003 — i meant a horizontal line thats why i got confused saying <hl> not <h1> <HL> i meant <hr>
×

Success!

Help @Sonia spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...