content logo

Learn HTML:

Html 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 alternate text message.

Example

<!DOCTYPE html>
<html>
<head>
<title>HTML noscript Tag</title>
</head>
<body>
<script type="text/javascript">

<!--
      document.write("Hello JavaScript!")

-->
</script>
<noscript>
Your browser does not support JavaScript!
</noscript>
</body>
</html>

This will produce following result, browser that doesn't support will show the text under <noscript> tag as output ie. "Your browser does not support JavaScript!".

Hello JavaScript!

#HTML Noscript Example #HTML Noscript Code #HTML Noscript Tutorial