HTML - <noscript> Tag


Advertisements


Description

The HTML <noscript> tag is used to handle the browsers which do recognize <script> tag but do not support scripting. This tag is used to display alternate text message.

Example

<!DOCTYPE html>
<html>

   <head>
      <title>HTML noscript Tag</title>
   </head>

   <body>
      <script type = "text/JavaScript">
         <!--
            document.write("Hello JavaScript!")
         -->
      </script>
      
      <noscript>
         Your browser does not support JavaScript!
      </noscript>
   </body>

</html>

This will produce the following result, browser that doesn't support will show the text under <noscript> tag as output ie. "Your browser does not support JavaScript!".

Global Attributes

This tag supports all the global attributes described in HTML Attribute Reference

Browser Support

Chrome Firefox IE Opera Safari Android
Yes Yes Yes Yes Yes Yes

html_tags_reference.htm

Advertisements