Why should we use


To find whether the browser supports JavaScript or not, use the <noscript> tag. 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

Live Demo

<!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>

Samual Sam
Samual Sam

Learning faster. Every day.

Updated on: 16-Jun-2020

4 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements