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.


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

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
  • Mozilla Firefox
  • Microsoft Edge
  • Opera
  • Safari