noscript tags
-
- Rank 0 - Newcomer
- Posts: 8
- Joined: Mon Nov 19, 2007 4:23 pm
noscript tags
If noscript tags are not allowed in html 5 should I just delete them with the text contained inside, or is there another method to show that JavaScript is turned off within the content?
-
- Site Admin
- Posts: 3785
- Joined: Sat Dec 11, 2004 9:23 am
- Location: Near Dallas, TX
Re: noscript tags
Hello,
The "noscript" element is allowed in HTML5, but not in XHTML/XML documents.
If you need to use "noscript", then you should probably change your document type from one that is based on XML.
This talks a little more about it:
http://wiki.whatwg.org/wiki/HTML_vs._XHTML
The "noscript" element is allowed in HTML5, but not in XHTML/XML documents.
If you need to use "noscript", then you should probably change your document type from one that is based on XML.
This talks a little more about it:
http://wiki.whatwg.org/wiki/HTML_vs._XHTML
In XHTML, the element is always parsed as a normal element, and can't really be used to stop content from being present when script is disabled.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
-
- Rank 0 - Newcomer
- Posts: 8
- Joined: Mon Nov 19, 2007 4:23 pm
Re: noscript tags
Many thanks
Albert
Albert