The noscript element is used to define the substitute content (text) when the script is not executed.
This tag can be used in browsers that recognize the <script> tag but cannot support scripts in it.
Differences between HTML and XHTML
NONE
Tips and comments:
Note: If the browser supports scripts, it will not display text in the noscript element.
Note: A browser that does not recognize the <script> tag will display the content of the tag on the page. To avoid the browser doing this, you should hide the script in the comments tag. Old-fashioned (without recognizing <script> tags) browsers ignore comments so that the content of the tag is not written to the page, while new-fashioned browsers know how to execute these scripts, even if they are surrounded by comment tags!
Global properties
The <noscript> tag supports global properties in HTML.
example
JavaScriptCopy the code