DO YOU NEED A CONTENT WRITER FOR YOUR BUSINESS?

Your One-Stop Solution for All Content Needs! Click here for more!
Categories: Javascript

HTML noscript Tag

Share

For a browser which doesn’t support script or disabled scripts in their browser, the ‘noscript’ tag defines an alternate content for the users.

If scripts are not supported or disabled in the user’s browser, then, the content inside the ‘noscript’ tag will be displayed.

This can be placed in both <head> and <body>. For inside the <head> element, <noscript> must contain only <style>, <link> and <meta> elements.

So, the HTML <noscript> Element defines a section of html that to be inserted when a script type on the page is not supported or if the scripting is currently disabled in the browser.

Read Also: JavaScript onerror() method to handle error

Note: In HTML 4.01, the <noscript> tag only be used inside a <body> element, not in <head>. But, in HTML5, this tag can be used both inside <head> as well as <body>.
The <noscript> tag is not supported in XHTML.

Most of the browsers like chrome, edge, internet explorer, firefox, safari and opera supports this tag.

Example:

<script>
<!--
function showMsg() {
alert("Hello World!");
}
//-->
</script>
<noscript>Your browser does not support JavaScript! <a href="http://www.namasteui.com/">Click Here</a></noscript>

The combination of <noscript> with the jQuery detection covers most problems with help of corporate firewalls and browser settings or plugins.

Namaste UI

For any types of queries, you can contact us on info[at]namasteui.com.

Recent Posts

Why is SEO a non-negotiable part of modern marketing?

In a world where digital presence is paramount, the question isn't whether you should do…

7 hours ago

Innovations in Hair Care: Exploring Breakthroughs for Lasting Results

Over the years, people have experimented with various methods to maintain healthy and beautiful hair.…

1 day ago

How To Strengthen Your Brand-Building Efforts?

Your brand more than developing an attractive and creative logo and infectious motto. It's the…

2 days ago

How To Be Successful And Maximize Compensation In A Personal Injury Case

Introduction Are you someone who has suffered from a personal injury and want to file…

2 days ago

What Are The Biggest Challenges Of Working From Home?

Operating from home has emerged as one of the most popular ways of doing jobs…

3 days ago

Art As An Asset: Will NFT’s Help You Survive Hyperinflation?

If the consequences of our society’s ever-growing debt are what worries you, then it is…

4 days ago