<noscript>
Резюме
Элемент HTML <noscript>
определяет секцию html кода, которая будет вставлена, если в браузере пользователя нет либо отключена поддержка JavaScript.
- Content categories Metadata content, flow content, phrasing content.
- Permitted content 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.
When scripting is disabled and when it isn't a descendant of the<head>
element: any transparent content, but no<noscript>
element must be among its descendants.
Otherwise: flow content or phrasing content. - Tag omission Нет, открывающий и закрывающий теги обязательны.
- Permitted parent elements Any element that accepts phrasing content, if there are no ancestor
<noscript>
element, or in a<head>
element (but only for an HTML document), here again if there are no ancestor<noscript>
element. - DOM interface
HTMLElement
Атрибуты
Этот элемент включает в себя только глобальные атрибуты.
Пример
<noscript>
<!-- anchor linking to external file -->
<a href="http://www.mozilla.com/">External Link</a>
</noscript>
<p>Rocks!</p>
Пример с включённым JavaScript
Rocks!
Результат с выключенным JavaScript
Rocks!
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard Определение '<noscript>' в этой спецификации. |
Живой стандарт | |
HTML5 Определение '<noscript>' в этой спецификации. |
Рекомендация | |
HTML 4.01 Specification Определение '<noscript>' в этой спецификации. |
Рекомендация |
Browser compatibility
BCD tables only load in the browser