Home >Web Front-end >HTML Tutorial >Detailed explanation of the use of html noscript tags
Generally, we use the noscript element to define alternative content (text) when the script is not executed, so as to inform the user of information. Client script support needs to be turned on to access more content
noscript Definition and Usage
The noscript element is used to define alternative content (text) when the script is not executed.
This tag can be used by browsers that recognize the 3f1c4e4b6b16bbbd69b2ee476dc4f83a tag but cannot support the script within it.
Differences between HTML and XHTML
NONE
Tips and Notes:
Note: If the browser supports scripting, it will not display the text in a noscript element.
Note: Browsers that cannot recognize the 3f1c4e4b6b16bbbd69b2ee476dc4f83a tag will display the content of the tag on the page. To prevent browsers from doing this, you should hide the script in comment tags. Older browsers (that don't recognize 3f1c4e4b6b16bbbd69b2ee476dc4f83a tags) ignore comments and thus don't write the content of the tag to the page, while newer browsers know how to execute these scripts even if they are surrounded by comment tags. !
The2b0b25ff593c5b6c03403dd6234ffb2c tag supports global attributes in HTML.
<body> ... ...</p> <p> <script type="text/javascript"> <!-- document .write("Hello World!") //--> </script> <noscript>你的浏览器不支持javascript!</noscript> ... ... </body>The code is as follows:
<body> ... ... <script type="text/vbscript"> <!-- document.write("Hello World!") '--> </script> <noscript>你的浏览器不支持VBScript!</noscript> ... ... </body>
The above is the detailed content of Detailed explanation of the use of html noscript tags. For more information, please follow other related articles on the PHP Chinese website!