I'm using noscript for a non-js version. The XHTML 1.0 validator doesn't seem to like the style element within <noscript>
Are there any workarounds for this?
- Styles are only allowed in the <head>
- <noscript was only allowed in the body. HTML 5 allows it anywhere but it hasn't been necessary to use it at all since Netscape 4.
Thanks for the response. We are soon moving to HTML 5 where noscript will be allowed in <head>.
I'm just wondering if there is some kind of "hack" or workaround to make it compliant with XHTML 1.0 Strict, without modifying the code very much.
Even though you are moving soon to HTML 5, are you going to restrict access from all browsers that don't handle HTML 5? It is normally a better practice to ensure that your techniques are widely accessible.
Just because they allow an obsolete tag to be used anywhere doesn't mean you should use it.
This topic is now closed. New replies are no longer allowed.