开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜