开发者

HTML head tag and body tag attributes

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜