HTML <noscript> tag

Updated: 10/11/2017 by Computer Hope

HTML noscript tagWhen writing in HTML, the <noscript> tag is a block element used to designate a section of HTML to be inserted if scripting is turned off in the browser, or a script type is unsupported on a web page. The following sections contain information about this tag, including an example of it in use, as well as related attributes and browser compatibility.

Example code

<script>document.write("Your browser supports JavaScript!")</script>
<noscript>Sorry, your browser does not support JavaScript.</noscript>

Example result



Example explanation

If you browser supports JavaScript, you should see the message "Your browser supports JavaScript!" If not, you should see the message "Sorry, your browser does not support JavaScript."

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the <noscript> tag does not have any unique attributes, it does utilize all of the standard attributes.

Compatibility

Internet Explorer Firefox Safari Opera Chrome
All versions All versions All version All versions All versions

Author, Browser, Compatibility, CSS, HTML script tag, Web design terms