HTML | <noscript> Tag

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:

filter_none

edit
close

play_arrow

link
brightness_4
code

<html
    <head
        <title>wbr Tag</title
        <style
            body { 
                text-align:center; 
            
            .gfg { 
                font-size:40px; 
                font-weight:bold; 
                color:green; 
            
            .geeks { 
                font-size:25px; 
                font-weight:bold; 
            
        </style
    </head
    <body
        <div class = "gfg">GeeksforGeeks</div
        <div class = "geeks"><noscript> Tag</div
        <script>
            document.write("GeeksforGeeks!")
        </script>
        <noscript>A computer science portal for geeks!</noscript>
    </body
</html>                    

chevron_right


Output:

Supported Browsers: The browser supported by <noscript> tag are listed below:

  • Apple Safari
  • Google Chrome
  • Firefox
  • Opera
  • Internet Explorer


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.