Horje
How to create The HTML <noscript> Tag

The HTML <noscript> tag defines an alternate content to be displayed to users that have disabled scripts in their browser or have a browser that doesn't support scripts:


Full Example of The HTML <noscript> Tag

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<p id="demo"></p>

<script>
document.getElementById("demo").innerHTML = "Hello JavaScript!";
</script>

<noscript>Sorry, your browser does not support JavaScript!</noscript>

<p>A browser without support for JavaScript will show the text written inside the noscript element.</p>
 
</body>
</html>

Output should be:

Full Example of The HTML <noscript> Tag
Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_noscript





Related Articles
What is HTML JavaScript HTML JavaScript
How to use The HTML <script> Tag HTML JavaScript
How to create A Taste of JavaScript HTML JavaScript
How to create The HTML <noscript> Tag HTML JavaScript

Single Articles
Full Example of The HTML <noscript> TagHTML JavaScript

Read Full:
HTML JavaScript
Category:
Web Tutorial
Sub Category:
HTML JavaScript
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
33



Share on: