The <noscript> element holds fallback HTML for when scripting is turned off or unsupported in the browser. Pair it with <script> pages that need a non-JS path.
With scripting off, the browser shows the children as HTML. With scripting on, that fallback is not presented as page content (MDN: children are treated as text). Prefer progressive enhancement: put core content in HTML first, then enhance with script.
Baseline · Widely available.
Not deprecated. Stable across browsers since about July 2015 (and much earlier in practice).
Study note.
On this tutorial site, JavaScript is enabled, so a real <noscript> block stays hidden. Previews below simulate scripting on vs off.
Syntax
HTML Syntax
syntax.html
<noscript>
fallback content
</noscript>
Both start and end tags are required. No nested <noscript>. In <head>, children are limited to <link>, <style>, and <meta> (when scripting is off).
Reference
Attributes
The <noscript> element has no element-specific attributes — only global attributes.
Add noscript with a non-JS alternative (download link).
Do not hide the only useful content inside script alone.
Edge Cases & Pitfalls
Most noscript mistakes assume it always shows, or put the wrong content in head.
visibility
Hidden when JS is on
Modern browsers enable scripting by default, so you will not see noscript content during normal browsing.
nesting
No nested noscript
Do not put <noscript> inside another <noscript>. Keep one clear fallback block.
head
Limited children in head
In <head>, only link, style, and meta belong inside noscript when scripting is off.
design
Not a full a11y strategy
Most assistive-tech users have JavaScript on. Build usable HTML first; use noscript as an extra safety net.
seo
Do not hide main content
Put important copy in normal HTML. Using noscript only to stash primary content is a poor pattern for users and crawlers.
Compatibility
Browser Support
The <noscript> element is core HTML in every browser. It is not a Node.js, Deno, or Bun API.
✓ Baseline · Widely available
<noscript>
Widely available since about July 2015 (and long before). Browsers show its children when scripting is disabled or unsupported.
98%Global support (approx.)
Google ChromeAll
Full support
Mozilla FirefoxAll
Full support
Apple SafariAll
Full support
Microsoft EdgeAll
Full support
OperaAll
Full support
Samsung InternetAll
Full support
Internet ExplorerAll
Supported
noscriptWidely supported
Bottom line: Safe to use. Prefer progressive enhancement; keep noscript as a clear non-JS fallback.
Remember
Key Takeaways
Purpose: fallback HTML when scripting is off or unsupported.
Placement: body for messages/links; head for link/style/meta.
Rules: both tags required; never nest noscript.
Design: enhance with script; do not hide core content only in JS.
One line: use noscript for a real non-JS path, not as the only place important content lives.
UA style
Default CSS Settings
Typical user-agent defaults (exact values vary by browser):
default.css
noscript {
display: block; /* when shown in body as flow content */
}
/* When scripting is enabled, browsers do not present
noscript children as normal page content */
Style the fallback with normal CSS when it is visible (scripting off).
Frequently Asked Questions
The noscript element holds HTML that the browser shows when scripting is turned off or unsupported. When scripting is on, that fallback is not shown as page content.
In the body for messages and links, or in the head for link, style, and meta only. Do not nest noscript inside another noscript.
Usually no — scripting is enabled by default, so the fallback stays hidden. Disable JavaScript in browser settings (or use a simulated preview) to see it.
It helps people with scripting off, but most users need a usable page with scripting on. Prefer progressive enhancement: core content in HTML, then enhance with script.
Yes. Inside head, when scripting is off, it may contain link, style, and meta elements — useful for fallback stylesheets.