👀 Live Preview
How a noscript notice appears to users without JavaScript (simulated preview):

The <noscript> tag ensures accessibility and graceful degradation when JavaScript is disabled. This guide explains its purpose, syntax, placement rules, and how beginners should pair it with progressive enhancement.
Content when JavaScript is off.
Reach users without scripting.
Wrap alternative HTML inside tags.
Where noscript can appear.
Less dynamic but usable experience.
Use sparingly for essential notices.
<noscript> Tag?The <noscript> tag is an essential HTML element that provides alternative content for users when JavaScript is disabled or not supported by their browser. It serves as a fallback mechanism, allowing developers to convey important information or offer reduced-but-functional experiences.
<noscript> is a standard HTML5 element. Core page content should work without JavaScript; use noscript for notices, links, and essential fallbacks—not as a substitute for building accessible HTML first.
When JavaScript is enabled, browsers hide noscript content. When disabled, the enclosed HTML is rendered like normal page content.
Implementing the <noscript> tag is straightforward. Enclose the content you want to display when JavaScript is disabled between opening and closing tags:
<noscript>
Your alternative content here.
</noscript><body>: may contain flow content (paragraphs, links, images, forms).<head>: may only contain <link>, <style>, and <meta>.body for important site-wide notices.| Topic | Code Snippet | Notes |
|---|---|---|
| Basic noscript | <noscript>...</noscript> | Valid HTML5 |
| Enable JS notice | We recommend enabling JavaScript... | Common pattern |
| Degradation notice | Some features may not work... | Graceful fallback |
| Head placement | <link>, <style>, <meta> only | Restricted content |
| Attributes | None | — |
| Browser support | Universal | All major browsers |
<noscript> vs Progressive Enhancement| Approach | When to Use | Priority |
|---|---|---|
| Progressive enhancement | Core HTML works first; JS adds features | Primary strategy |
<noscript> | Notice or link when JS is disabled | Supplementary |
| Server-side rendering | SPAs deliver HTML before hydration | Modern apps |
<noframes> | Obsolete frames fallback | Do not use |
The <noscript> tag does not support any attributes. Its simplicity lies in directly encapsulating alternative content without extra configuration.
None noscript tagNo tag-specific attributes. Content inside the element carries the fallback message.
<noscript>...</noscript>Inner HTML ContentUse semantic elements inside: <p>, <a>, <form>.
<p>Enable JavaScript...</p>Accessible content notices and graceful degradation messages shown when JavaScript is disabled.
How a noscript notice appears to users without JavaScript (simulated preview):
Use <noscript> to make content accessible when JavaScript is disabled, and to provide graceful degradation when your site relies on scripting for enhanced features.
The primary purpose of noscript is to reach users who have disabled JavaScript with crucial information or alternative paths.
<noscript>
We recommend enabling JavaScript to experience the full functionality of this website.
</noscript>When your website relies heavily on JavaScript, inform users without scripting about reduced functionality.
<noscript>
Some features on this site may not work properly without JavaScript.
</noscript>noscript supports inclusive design when used correctly:
Place fallback HTML inside <noscript> tags.
If scripting is enabled, noscript content stays hidden.
When JS is off, enclosed content displays like normal HTML.
Users without JavaScript still receive meaningful information and paths forward.
The <noscript> tag is supported in all major browsers, including Internet Explorer. Understanding compatibility helps you deliver a consistent fallback experience.
Chrome, Firefox, Safari, Edge, Opera, and Internet Explorer all render <noscript> when JavaScript is disabled or unavailable.
Bottom line: <noscript> works everywhere. Pair it with progressive enhancement so core content never depends solely on JavaScript.
The HTML <noscript> tag is a powerful tool for developers striving to create accessible and inclusive web experiences. By implementing this tag strategically, you can gracefully handle scenarios where JavaScript is disabled, ensuring your content remains available and functional for a diverse audience.
<noscript> tag sparingly and only for essential content or functionalities.<noscript>Bookmark these before you ship JavaScript-heavy pages.
Content when scripting is off.
BehaviorStandard, supported element.
StatusWrap content directly inside.
AttributesReach non-JS users.
A11yWarn about reduced features.
UXAll major browsers.
Compatibilitybody (flow content) or head (link, style, meta only).noscript is for disabled JS; noframes was obsolete frames fallback.Practice <noscript> notices in the Try It editor. Test with JavaScript disabled.
6 people found this page helpful