diff options
Diffstat (limited to 'devdocs/html/element%2Fnoscript.html')
| -rw-r--r-- | devdocs/html/element%2Fnoscript.html | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/devdocs/html/element%2Fnoscript.html b/devdocs/html/element%2Fnoscript.html new file mode 100644 index 00000000..79a5d195 --- /dev/null +++ b/devdocs/html/element%2Fnoscript.html @@ -0,0 +1,71 @@ +<header><h1><noscript>: The Noscript element</h1></header><div class="section-content"> +<p>The <code><noscript></code> <a href="../index">HTML</a> 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.</p> <figure class="table-container"><div class="_table"><table class="properties"> <tbody> <tr> <th scope="row"><a href="../content_categories">Content categories</a></th> <td> <a href="../content_categories#metadata_content">Metadata content</a>, <a href="../content_categories#flow_content">flow content</a>, <a href="../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 <a href="head"><code><head></code></a> element: in any order, zero or more <a href="link"><code><link></code></a> elements, zero or more <a href="style"><code><style></code></a> elements, and zero or more <a href="meta"><code><meta></code></a> elements.<br>When scripting is disabled and when it isn't a descendant of the <a href="head"><code><head></code></a> element: any <a href="../content_categories#transparent_content_model">transparent content</a>, but no <code><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="../content_categories#phrasing_content">phrasing content</a>, if there are no ancestor <code><noscript></code> element, or in a <a href="head"><code><head></code></a> element (but only for an HTML document), here again if there are no ancestor <code><noscript></code> element. </td> </tr> <tr> <th scope="row">Implicit ARIA role</th> <td><a href="https://www.w3.org/TR/html-aria/#dfn-no-corresponding-role" target="_blank">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><a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement"><code>HTMLElement</code></a></td> </tr> </tbody> </table></div></figure> +</div> +<h2 id="attributes">Attributes</h2> +<div class="section-content"><p>This element only includes the <a href="../global_attributes">global attributes</a>.</p></div> +<h2 id="examples">Examples</h2> +<div class="section-content"><div class="code-example"> +<p class="example-header"><span class="language-name">html</span></p> +<pre data-signature="OOhJQl/3vn5jXTIZwHLqDDg9lfwwyY16x6xvY8+6LfE=" data-language="html"><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>noscript</span><span class="token punctuation">></span></span> + <span class="token comment"><!-- anchor linking to external file --></span> + <span class="token tag"><span class="token tag"><span class="token punctuation"><</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>https://www.mozilla.org/<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>External Link<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>a</span><span class="token punctuation">></span></span> +<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>noscript</span><span class="token punctuation">></span></span> +<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>p</span><span class="token punctuation">></span></span>Rocks!<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>p</span><span class="token punctuation">></span></span> +</pre> +</div></div> +<h3 id="result_with_scripting_enabled">Result with scripting enabled</h3> +<div class="section-content"><p>Rocks!</p></div> +<h3 id="result_with_scripting_disabled">Result with scripting disabled</h3> +<div class="section-content"> +<p><a href="https://www.mozilla.org/" target="_blank">External Link</a></p> <p>Rocks!</p> +</div> +<h2 id="specifications">Specifications</h2> +<div class="_table"><table class="standard-table"> +<thead><tr><th scope="col">Specification</th></tr></thead> +<tbody><tr><td><a href="https://html.spec.whatwg.org/multipage/scripting.html#the-noscript-element">HTML Standard <br><small># the-noscript-element</small></a></td></tr></tbody> +</table></div> +<h2 id="browser_compatibility">Browser compatibility</h2> +<div class="_table"><table> +<thead> +<tr id="bct-browser-type"> +<th></th> +<th colspan="6">Desktop</th> +<th colspan="6">Mobile</th> +</tr> +<tr id="bct-browsers"> +<th></th> +<th>Chrome</th> +<th>Edge</th> +<th>Firefox</th> +<th>Internet Explorer</th> +<th>Opera</th> +<th>Safari</th> +<th>WebView Android</th> +<th>Chrome Android</th> +<th>Firefox for Android</th> +<th>Opera Android</th> +<th>Safari on IOS</th> +<th>Samsung Internet</th> +</tr> +</thead> +<tbody><tr> +<th><code>noscript</code></th> +<td class="bc-supports-yes">1</td> +<td class="bc-supports-yes">12</td> +<td class="bc-supports-yes">1</td> +<td class="bc-supports-yes">Yes</td> +<td class="bc-supports-yes">15</td> +<td class="bc-supports-yes">3</td> +<td class="bc-supports-yes">4.4</td> +<td class="bc-supports-yes">18</td> +<td class="bc-supports-yes">4</td> +<td class="bc-supports-yes">14</td> +<td class="bc-supports-yes">2</td> +<td class="bc-supports-yes">1.0</td> +</tr></tbody> +</table></div><div class="_attribution"> + <p class="_attribution-p"> + © 2005–2023 MDN contributors.<br>Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.<br> + <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript" class="_attribution-link">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript</a> + </p> +</div> |
