HTML noscript Tag Tutorial

In this section, we will learn what HTML <noscript> element is and how to use it.

What is <noscript> Tag in HTML?

HTML <noscript> element is used when we want to display a message in browsers that don’t support JavaScript.

Basically, browsers have this capability of disabling any use of JavaScript on a webpage. But these days is rare to see a webpage that doesn’t use JavaScript.

So if you have a webpage that absolutely works with JavaScript and without it the page won’t work correctly, you can use <noscript> element and set a message for it to alert users to turn on the browser support for JavaScript.

You should know that the content of a <noscript> element only gets displayed to users if that browser does not support JavaScript! Otherwise, the value of this element is skipped as if it didn’t exist in the first place.

HTML <noscript> Tag Syntax:

<noscript> message </noscript>

HTML <noscript> Tag Values

The value we set for HTML <noscript> element is a message that appears to users if their browsers don’t support the use of JavaScript in webpages.

Example: using <noscript> tag in HTML

See the Pen using <noscript> tag in HTML by Omid Dehghan (@odehghan) on CodePen.

Facebook
Twitter
Pinterest
LinkedIn

Top Technologies