This reference is built into PageRIJ — a live HTML, CSS & SVG authoring and learning environment.

HTML <noscript> element

The <noscript> element provides fallback content when scripting is disabled or unsupported. It can supply a message, alternative instructions, or a link to a feature that works without scripts.

Within <head>, fallback markup is restricted to <link>, <style>, and <meta> elements, subject to their own content and attribute rules. Within <body>, the fallback must be valid in the surrounding context. For example, a paragraph can appear in a place that allows paragraphs. A <noscript> must not contain another <noscript>.

When scripting is enabled, the element represents nothing. A script that fails to download or throws an error does not cause the fallback to appear: <noscript> responds to whether scripting is enabled, not whether an individual script succeeds.

The example supplies a short message for a feature that needs JavaScript. The visual column illustrates the message as it would appear with scripting disabled. That labelled illustration remains visible here so the fallback can be read while scripting is enabled.

Attributes: GLOBALS.

Typical layout:
<noscript>
  <p>Enable JavaScript to use the calculator.</p>
</noscript>
Visual representation:

With scripting disabled:

Enable JavaScript to use the calculator.