HTML Tutorial

HTML Tag: <noscript>

Usage of <noscript>

The <noscript> tag is used to provide alternative content for browsers that do not support JavaScript.

Attributes of <noscript>

There are no specific attributes associated with the <noscript> tag.

Example with <noscript>

<noscript>
  <p>Your browser does not support JavaScript.</p>
</noscript>

Exploring the <noscript> tag:

<!DOCTYPE html>
<html>
<head>
  <title>Using the &lt;noscript&gt; tag</title>
</head>
<body>
  <script type="text/javascript">
    // JavaScript code goes here
  </script>
  
  <noscript>
    <p>Your browser does not support JavaScript.</p>
  </noscript>
</body>
</html>

In this example, the JavaScript code will only run if the browser supports JavaScript. If the browser does not support JavaScript, the <noscript> element will display the message "Your browser does not support JavaScript."