HTML <noscript> Tag

Advertisements


Description

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

Global Attributes

This tag supports all the global attributes described in - HTML Attribute Reference

Browser Support

ChromeFirefoxIEOperaSafariAndroid
YesYesYesYesYesYes

html_tags_reference.htm

Advertisements