Which HTML tags have no content

2019-04-29 07:09发布

Some HTML tags like br and hr have no content and cannot have a closing tag. What is the complete set of these tags?

标签: html xhtml
5条回答
来,给爷笑一个
2楼-- · 2019-04-29 07:37

http://www.w3schools.com/tags/default.asp

All the one that has a forward slash in their tag name. (correction) thx =O

查看更多
贼婆χ
3楼-- · 2019-04-29 07:43

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

查看更多
ゆ 、 Hurt°
5楼-- · 2019-04-29 07:50
Deceive 欺骗
6楼-- · 2019-04-29 07:52

Every tag in the DTD that has EMPTY in the fourth field is empty.

查看更多
登录 后发表回答