What purpose does a <script> tag serve inside of a <noscript> tag?

Usage of NoScript tag:
The tag defines alternate content that will be displayed if the user has disabled script or browser does not support script.
It can be used inside both <head> and <body> tag.

Syntax:
<noscript> Contents… </noscript>

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">
        <code><noscript></code> Tag</div>
    <script>
        document.write("GeeksforGeeks!")
    </script>
    <noscript>A computer science portal</noscript>
</body>
  
</html>

chevron_right


Output:

full-stack-img

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.



Improved By : shrihari689