Skip to content
Related Articles

Related Articles

Improve Article

HTML <noscript> Tag

  • Difficulty Level : Basic
  • Last Updated : 02 Mar, 2021

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
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :