How do we add a noscript section in HTML?

HTMLWeb DevelopmentFront End Technology

Use the <noscript> tag to add a noscript section in HTML. The HTML <noscript> tag is used to handle the browsers which do recognize <script> tag but do not support scripting. This tag is used to display an alternate text message.

Example

You can try to run the following code to add a noscript section −

<!DOCTYPE html>
<html>
   <head>
      <title>HTML noscript Tag</title>
   </head>
   <body>
      <script>
         <!--
            document.write("Hello JavaScript!")
         -->
      </script>

      <noscript>
         Your browser does not support JavaScript!
      </noscript>
   </body>
</html>
raja
Published on 13-Mar-2018 13:28:27
Advertisements