HTML noscript tag

Example

Use of the <noscript> tag:
<script type="text/javascript">
document.write("Hello World!")
</script>
<noscript>Your browser does not support JavaScript!</noscript>


Definition and Usage

The <noscript> tag is used to provide an alternate content for users that have disabled scripts in their browser or have a browser that doesn’t support client-side scripting.
The noscript element can contain all the elements that you can find inside the body element of a normal HTML page.
The content inside the noscript element will only be displayed if scripts are not supported, or are disabled in the user’s browser.

Browser Support

The <noscript> tag is supported in all major browsers.

Differences Between HTML and XHTML

NONE

Standard Attributes

id, class, title, style, dir, lang, xml:lang
Share this article :
 
Copyright © 2012. Best Online Tutorials | Source codes | Programming Languages - All Rights Reserved