Question

Am I allowed to place <noscript> in the <head>?

Was it helpful?

Solution

According to the XHTML Strict DTD, no, you're allowed script, style, meta, link, object, title and base only. Transitional allows isindex as well, but still not noscript.

OTHER TIPS

Using the HTML5 Doctype, I have a declaration in my <head> with a <link> element that points to a no-js.css stylesheet. It validates and seems to work fine.

You are as long as you do it in HTML documents and not XHTML.

In a head element [...], the noscript element must contain only link, style, and meta elements.

See specification.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top