GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

`<noscript>` HTML noscript element

The <noscript> HTML element defines a section of HTML to be inserted if a script type on the page is unsupported or if scripting is currently turned off in the browser.

The **`<noscript>`** [HTML](/docs/Web/HTML) element defines a section of HTML to be inserted if a script type on the page is unsupported or if scripting is currently turned off in the browser.

## Attributes

This element only includes the [global attributes](/docs/Web/HTML/Reference/Global_attributes).

## Usage notes

The `<noscript>` element represents its children differently depending on if scripting is enabled:

- If scripting is disabled the `<noscript>` element represents its children as [HTML content](/docs/Web/API/HTMLElement).
- If scripting is enabled, the `<noscript>` element represents its children as [text](/docs/Web/API/Text).

## Examples

```html
<noscript>
<!-- anchor linking to external file -->
<a href="https://www.mozilla.org/">External Link</a>
</noscript>
<p>Rocks!</p>
```

### Result with scripting enabled

Rocks!

### Result with scripting disabled

[External Link](https://www.mozilla.org/)

Rocks!

## Technical summary

<table class="properties">
<tbody>
<tr>
<th scope="row">
<a href="/en-US/docs/Web/HTML/Guides/Content_categories"
>Content categories</a
>
</th>
<td>
<a href="/en-US/docs/Web/HTML/Guides/Content_categories#metadata_content"
>Metadata content</a
>,
<a href="/en-US/docs/Web/HTML/Guides/Content_categories#flow_content"
>flow content</a
>,
<a href="/en-US/docs/Web/HTML/Guides/Content_categories#phrasing_content"
>phrasing content</a
>.
</td>
</tr>
<tr>
<th scope="row">Permitted content</th>
<td>
When scripting is disabled and when it is a descendant of the
head element: in any order, zero or more
link elements, zero or more
style elements, and zero or more
meta elements.<br />When scripting is
disabled and when it isn't a descendant of the
head element: any
<a
href="/en-US/docs/Web/HTML/Guides/Content_categories#transparent_content_model"
>transparent content</a
>, but no <code>&#x3C;noscript></code> element must be among its
descendants.<br />Otherwise: flow content or phrasing content.
</td>
</tr>
<tr>
<th scope="row">Tag omission</th>
<td>None, both the starting and ending tag are mandatory.</td>
</tr>
<tr>
<th scope="row">Permitted parents</th>
<td>
Any element that accepts
<a href="/en-US/docs/Web/HTML/Guides/Content_categories#phrasing_content"
>phrasing content</a
>, if there are no ancestor <code>&#x3C;noscript></code> element, or in
a head element (but only for an HTML
document), here again if there are no ancestor
<code>&#x3C;noscript></code> element.
</td>
</tr>
<tr>
<th scope="row">Implicit ARIA role</th>
<td>
<a href="https://w3c.github.io/html-aria/#dfn-no-corresponding-role"
>No corresponding role</a
>
</td>
</tr>
<tr>
<th scope="row">Permitted ARIA roles</th>
<td>No <code>role</code> permitted</td>
</tr>
<tr>
<th scope="row">DOM interface</th>
<td>HTMLElement</td>
</tr>
</tbody>
</table>

## Specifications

## Browser compatibility

source: MDN Web Docs mirror · page

Cite this

"` ` HTML noscript element". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/noscript

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·