Computer >> Computer tutorials >  >> Programming >> HTML

How do we add a noscript section in HTML?


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>