HTML <noscript> Tag
Topic: HTML5 Tags ReferencePrev|Next
Description
The <noscript> tag is used to provide an alternate content for users that have disabled scripts in their browser or the browser doesn't recognize the scripting language, or have a browser that doesn't support client-side scripting.
The following table summarizes the usages context and the version history of this tag.
| Placement: | Block |
|---|---|
| Content: | Block, inline, and text when it isn't a descendant of the <head> element; Otherwise <link>, <style>, and <meta> elements. |
| Start/End Tag: | Start tag: required, End tag: required |
| Version: | HTML 4, 4.01, 5 |
Usage Notes
The content inside the <noscript> element will only be displayed by a browser if:
- The browser is configured not to evaluate scripts.
- The browser doesn't support the scripting language invoked by a
<script>element earlier in the document. - Or, the browser doesn't support client-side scripts.
Syntax
The basic syntax of the <noscript> tag is given with:
The example below shows the <noscript> tag in action.
Example
Try this code »<script>
document.write("Hello World!")
</script>
<noscript>Your browser does not support JavaScript!</noscript>
Tag-Specific Attributes
The <noscript> tag doesn't have any specific attribute.
Global Attributes
Like all other HTML tags, the <noscript> tag supports the global attributes in HTML5.
Event Attributes
The <noscript> tag also supports the event attributes in HTML5.
Browser Compatibility
The <noscript> tag is supported in all major modern browsers.
Basic Support—
|
Further Reading
See tutorial on: HTML Scripts.
Related tag: <script>.

