开发者

Is it ok to place link elements outside document's head section?

开发者 https://www.devze.com 2022-12-17 06:36 出处:网络
It\'s stated that the link element must be embedded in the head section. I need to link some style sheets to a document with 开发者_StackOverflow社区static predefined header (rendered by legacy frame

It's stated that the link element must be embedded in the head section.

I need to link some style sheets to a document with 开发者_StackOverflow社区static predefined header (rendered by legacy framework). So I can't insert the tags to the head. Can placing them outside cause issues with any browsers ? Or maybe its better to insert the tags with javascript ?


No version of HTML allows it, but browsers perform a great deal of error recovery. I wouldn't depend on it.


Don't do it especially on a website as opposed to a intranet. You will start to limit what browsers can view your site correctly. Please could you elaborate on your usage, I bet there is a better solution to the problem you are trying to solve.

0

精彩评论

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