Open In App

HTML <noscript> Tag

Last Updated : 26 Aug, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

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


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

Syntax:  

<noscript> Contents... </noscript>

The 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: 


Next Article

Similar Reads