Introduction:

In this article we are going to explain what is <noscript> tag in html or why use noscript tag in HTML or how to use noscript element in html with example.

Description:

The HTML <noscript> tag defines alternate text or HTML to be inserted if a script type is not supported or if the browser has disabled scripting. This tag is also commonly referred to as the <noscript> element.

 

HTML <noscript> Tag Syntax:


<noscript>
    //write alternate html or text here  
</noscript>

 

Note:-

          Ø  The HTML <noscript> element is found either within the <head> tag or the <body>         tag. 

          Ø  The <noscript> tag will display alternate HTML content if the script type is not            supported or if the browser has scripting disabled.

          Ø  If the scripting is enabled on the browser, the <noscript> tag will not display content         on the page.

Example of HTML noscript code

<!DOCTYPE html>
<html>
<head>
    <title>This is the example of noscript tag</title>     
</head>
<body>
    <script type="text/JavaScript">
        
        document.write("Hello sqltutorialspoint.com !")
 
    </script>
    
    <noscript>Sorry! Your browser does not support JavaScript.!</noscript>
 
</body>
</html> 


Output:

 

  use noscript tag in html with example

I hope this article will help to you after reading.

0 comments


Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.

you may also like