Open In App

HTML <noscript> Tag

Improve
Improve
Like Article
Like
Save
Share
Report

The <noscript> tag in HTML is used to display the text for those browsers which does not support script tag or the browsers disable the script by the user. This tag is used in both <head> and <body> tag.

Note: This tag is used in those browsers only which does not support scripts.

Syntax:  

<noscript> Contents... </noscript>

Below example illustrates the <noscript> tag in HTML:

Example: 

HTML




<html>
 
<body>
    <h1>GeeksforGeeks</h1>
    <h2>HTML noscript Tag</h2>
    <script>
        document.write("GeeksforGeeks!")
    </script>
    <!-- noscript tag starts -->
    <noscript>A computer science portal</noscript>
    <!-- noscript tag ends -->
 
</body>
 
</html>


Output: 

Supported Browsers: 

  • Google Chrome
  • Edge 12
  • Internet Explorer
  • Firefox 1
  • Opera
  • Safari

Last Updated : 26 Jul, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads