html element
`<noscript>` HTML noscript element
The <noscript> HTML element defines a section of HTML to be inserted if a script type on the page is unsupported or if scripting is currently turned off in the browser.
Attributes
This element only includes the global attributes.
Examples
<noscript>
<!-- anchor linking to external file -->
<a href="https://www.mozilla.org/">External Link</a>
</noscript>
<p>Rocks!</p>
Result with scripting enabled
Rocks!
Result with scripting disabled
Rocks!
Usage notes
The <noscript> element represents its children differently depending on if scripting is enabled:
- If scripting is disabled the
<noscript>element represents its children as HTML content. - If scripting is enabled, the
<noscript>element represents its children as text.
Technical summary
| Content categories | Metadata content, flow content, phrasing content. |
|---|---|
| Permitted content |
When scripting is disabled and when it is a descendant of the
[``](/firefox/mdn/html/reference/elements/head/) element: in any order, zero or more
[``](/firefox/mdn/html/reference/elements/link/) elements, zero or more
[`
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibilityBrowser compatibilityCompatibility data is available on the canonical MDN page. |