HTML NoScript Tag
HTML <noscript> tag is used to define an alternate content for the users who have disabled scripting from the browser and want to access the web page.
The <noscript> element can be used within <head> and <body> tags.
While using noscript tag inside <head> element, <noscript> must contain <link>, <style>, and <meta> tags.
The text inside the <noscript> element will be displayed if the user's browser is not script supporting.
Example of noscript tag is given below:
<script>
document.write("Welcome to JavaScript")
</script>
<noscript>Sorry! Your browser does not support JavaScript.!</noscript>
Output : Welcome to JavaScript
In HTML 4.01, the <noscript> tag can only be used inside the <body> element.
In HTML5, the <noscript> tag can be used both inside <head> and <body>.
In XHTML, the <noscript> tag is not supported.
© 2025 Easy To Learning. All Rights Reserved | Design by Easy To Learning