The HTML NoScript Tag is used to show or display alternative text if the browser of a user doesn’t support scripts or even if the user has disabled scripts in the browser.
This means that the content within the NoScript Tag will be visible only if scripts are not supported or disabled in the browser.
The NoScript HTML Tag can contain all the HTML elements that the HTML Body Tag can have.
HTML NoScript Tag Syntax
<noscript> Some Text Here.. </noscript>
HTML NoScript Tag Example
HTML NoScript Tag Code | Output |
<br /><script>document.write("Hello From Tech Honey!")<br /></script><br /><noscript>Sorry, your browser<br />does not support JavaScript!</noscript><br /><p>A browser which does not supports JavaScript<br />will show the text inside<br />the <noscript> tag.</p> |
A browser which does not supports JavaScript will show the text inside the <noscript> tag. |
In the HTML NoScript Tag example above, if the browser does not supports JavaScript or if JavaScript is disabled then the text in the HTML NoScript Tag will be displayed.
HTML NoScript Tag support all HTML Global Attributes
HTML NoScript Tag Supporting Browsers
S. No. | Browser | Supported(Yes/No) |
1 | Internet Explorer | Yes |
2 | Firefox | Yes |
3 | Google Chrome | Yes |
4 | Opera | Yes |
5 | Safari | Yes |