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.
<!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 the following result, browser that doesn't support will show the text under <noscript> tag as output ie. "Your browser does not support JavaScript!".
This tag supports all the global attributes described in HTML Attribute Reference
Chrome | Firefox | IE | Opera | Safari | Android |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |