Some HTML tags like br and hr have no content and cannot have a closing tag. What is the complete set of these tags?
+7
A:
Check the table at http://www.w3.org/TR/html4/index/elements.html.
fcingolani
2010-08-27 03:13:06
don't forget br!
JohnB
2010-08-27 03:15:48
@JohnB What does that mean? It *is* in the link given.
syockit
2010-08-27 03:23:28
A:
Every tag in the DTD that has EMPTY
in the fourth field is empty.
Ignacio Vazquez-Abrams
2010-08-27 03:14:33
A:
http://www.w3schools.com/tags/default.asp
All the one that has a forward slash in their tag name. (correction) thx =O
Tao
2010-08-27 03:16:16
A:
Html don't force the document to be well formatted, so end tags for certain tags like <br>
and <hr>
can be left out and still the page loads fine, but it's like they cannot have end tags </br>
and <br />
works just fine. There is probably no division like Content and Non-Content tags, Refer to this article for details on Tags http://www.devx.com/projectcool/Article/19816
Kiran Bheemarti
2010-08-27 03:41:19
HTML has a defined syntax, it isn't the language's fault that a number of popular parsers for it have excellent error handling features. "There is probably no division like Content and Non-Content tags" — there is, it is clearly defined in the specification. As for that article, it appears to have no content aside from a demand that I register.
David Dorward
2010-08-30 23:04:03