HTML <noscript> tag
- Previous Page <noframes>
- Next Page <object>
Definition and Usage
<noscript>
The tag defines alternative content that is displayed to users who have disabled scripts in their browser or whose browser does not support scripts.
<noscript>
The element can be used in both <head> and <body>. When used in the <head> section,<noscript>
The element can only contain <link>, <style>, and <meta> elements.
Similar to the script element, the type of the noscript element depends on its position in the document.
Although JavaScript is widely supported now, there are still some specialized browsers that do not support it. Moreover, even if the browser supports JavaScript, users may disable it - many large companies have regulations prohibiting employees from enabling JavaScript.
Tip:Multiple noscript elements can be added to a page to correspond to various functional areas that require script control. This is particularly useful when providing alternative markup content that does not depend on Javascript.
See Also:
HTML Tutorial:HTML Script
Example
Use the <noscript> tag:
<script> document.write("Hello World!") </script> <noscript>Your browser does not support Javascript!</noscript>
Global Attributes
<noscript>
The tag also supports Global Attributes in HTML.
Default CSS Settings
None.
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |
- Previous Page <noframes>
- Next Page <object>