开发者

HTML head tag and body tag attributes

开发者 https://www.devze.com 2023-03-14 01:53 出处:网络
For what reasons would you need to use an opening body tag other than <body>? Also, would there be any reason to use attributes in the html head tag?

For what reasons would you need to use an opening body tag other than <body>?

Also, would there be any reason to use attributes in the html head tag?

Edit:

By other than <body> I meant a body tag with attributes like <body id="mybody">. I wasn't refering to something 开发者_如何学Pythonlike <someotherbody>.


The ONLY opening body tag is body. The frameset example would be for just that...making a frameset...not for replacing the BODY.

You can certainly use attributes on the HTML tag--in fact, you should. In HTML 5, for instance, you should have a lang attribute at a bare minimum.

0

精彩评论

暂无评论...
验证码 换一张
取 消