<noscript>...</noscript>

HTML4 HTML5

Used to define alternative content that will be displayed to the user only if their browser does not support scripts (e.g., JavaScript) or if script support has been disabled[cite: 3].

Both opening and closing tags are mandatory[cite: 3].

Attributes:

Example

Code:

<script> document.write("JavaScript is enabled and working properly."); </script> <noscript> <p style="color: red;">Your browser does not support JavaScript or it has been disabled.</p> </noscript>

The browser will interpret this code as follows (when JavaScript support is enabled, content inside <noscript> is hidden)[cite: 3]:

JavaScript is enabled and working properly.