noscript tag
snippet in html

what does noscript tag do

user3473

The <noscript> tag defines an alternate content to be displayed to users that have disabled scripts in their browser or have a browser that doesn't support script. The <noscript> element can be used in both <head> and <body>.

noscript tag

user5286

<!--noscript is alternate content for people with scripts disabled in their browser-->
<head>
  <noscript><style>h1{color:red;}</style></noscript><!--noscript in <head> can only have <link>, <style>, or <meta> elements-->
</head>
<body>
  <script>document.body.innerHTML += "Hello, World!"</script>
  <noscript>You do not have JavaScript enabled in your browser.</noscript>
</body>