HTML noscript Tag

  • HTML <noscript> tag is used to provide an fall-back content to the browser that does not support the JavaScript or users has disabled browser scripting.

  • As the name describe, we can use <noscript> tag to render alternate content. Alternate content within <noscript></noscript> tags will render only when JavaScript is disabled.

Example

<!DOCTYPE html>
<html>
<head>
  <title>HTML noscript tag</title>
</head>
<body>
  <script type="text/javascript">
    document.write("JavaScripr running...")
  </script>
  <noscript>Your browser does not load/support JavaScript.</noscript>
</body>
</html>

Run it...   »

<noscript> Tag Attributes

HTML <noscript> tag does not support any specific attributes.

Global Attributes

HTML <noscript> tag support following global attributes.

Attributes Value Description
id unique_name Declared unique id for an element.
class class_name Declared one or more classnames for an element.
style styles CSS inline styles specify an element.
title title Specify extra details of element contain, this will display as a "tooltip" for an elements.

Event Attributes

HTML <noscript> tag does not support any event attributes.

Browser Compatibility

  • Google Chrome
    Yes
  • Mozilla Firefox
    Yes
  • Microsoft Edge
    Yes
  • Opera
    Yes
  • Safari
    Yes