Menu
Document Structure & Metadata

<noscript> Tag

Fallback content for users without JavaScript.

1Graceful Degradation

Anything inside <noscript> only renders when JavaScript is disabled. Use it sparingly for critical fallback messaging.

Example Code
css
<noscript>
  <p>Please enable JavaScript to use this app.</p>
</noscript>

2Put the element in context

A noscript message can explain a feature’s limitation when scripting is unavailable. It does not make an inaccessible scripted feature accessible on its own. Important public information should remain readable where practical, and the message should offer a useful alternative rather than only an error.

3Practice with a small page

Add a concise alternative contact link inside noscript for a script-dependent form. Disable JavaScript in your test browser and inspect the result. Keep the page’s explanation and navigation available even when the interactive enhancement is missing.

Finished reading?

Mark this topic as complete to track progress.