Javatpoint Logo

91-9990449935

 0120-4256464

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.

The example of noscript tag is given below:

Test it Now

Output:


Difference between HTML4 and HTML5

In HTML 4.01, <noscript> tag can be used inside the <body> tag only but in HTML5 it can be used inside <head> and <body> tag.


Difference between HTML and XHTML

The noscript tag is not supported in XHTML.


The noscript tag supports global and event attributes in HTML.


Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<noscript>YesYesYesYesYes
Next TopicHTML noscript tag