This is an important message requiring you to make a choice if you're based in the EU.

HTML <noscript> Tag

The <noscript> tag has an alternative content, which is displayed in the browsers, that don’t support scripts, or the browsers, where the user disables the script support. In other cases, the browser ignores this tag and its content.

In HTML5 the <noscript> tag can be placed in the <head> and <body> elements. In HTML4 it can be used only in the <body> element. If the <noscript> is placed in the <head> tag, it must contain only the <link>, <style> and <meta> tags.


The <noscript> tag comes in pairs; the closing tag is required.


<!DOCTYPE html>
    <title>Title of the document</title>
      document.write("My first code in JavaScript!")
    <noscript>Sorry, your Browser doesn’t support JavaScript!</noscript>



The <noscript> tag supports the Global Attributes and the Event Attributes.

Browser support

Do you find this helpful?

Related articles