HTML5 noscript tag, Use and implementation of <noscript> tag.


 

HTML5 noscript tag, Use and implementation of <noscript> tag.

In this tutorial, we will introduce you about the <noscript> tag.

In this tutorial, we will introduce you about the <noscript> tag.

HTML5 noscript tag, Use and implementation of <noscript> tag.

Description:

The <noscript> tag is available in both HTML5 and HTML4.01. It tells, that the browser does not support script. The content present in <noscript> tag will be display when script not support by browser. In HTML4.01, the <noscript> tag can be used in body tag. But in HTML5, It can be use in both <head> and <body>.

Declaration Syntax :
Declaration syntax of <noscript> in HTML5.
<noscript>Content </noscript>

Example of <nav> in HTML5:

Code:
NoscriptTag.html
<!doctype html>
<html>
<body>
<h1>Example of noscript tag!</h1>
<script type="text/javascript">
document.write("Bharat Singh");
</script>
<noscript>Browser not support javascript.</noscript>
</body>
</html>
Output:
 script supporting browser

Script not supported by browser.

Download this code

Difference Between HTML5 and HTML4.01:

The noscript tag is available in both HTML5 and HTML4.01. So no difference.

Ads