Scripts & Templates

HTML <noscript> element

Provides alternate content when scripting is disabled or unsupported. Its permitted content depends on whether it is in head or body. Use a useful alternative such as links or a concise explanation when scripting is unavailable. It is not a way to detect every JavaScript runtime error; its behavior depends on the browser's scripting mode. It accepts global HTML attributes; individual global features may be inapplicable or restricted.

Formal Syntax & Structure

html syntaxhtml
<noscript>Alternative content</noscript>

Return Value

HTMLElement

Content model: Context-dependent; in head only limited metadata when scripting is disabled, elsewhere transparent when scripting is disabled.

Working Example

Example Snippethtml
<!doctype html><html lang="en">  <head>    <meta charset="utf-8">    <title>HTML example</title>  </head>  <body>    <noscript>      <p>Interactive features require JavaScript. You can still read the article.</p>    </noscript>  </body></html>
HTML Reference