- Courses
- HTML
- HTML top level tags
- <noscript>
- Effect of scripting on noscript element
What happens to the <noscript>
element when scripting is enabled?
When scripting is enabled, the <noscript>
element's content is ignored by the browser.
If the browser supports scripting and it is enabled, the content within the <noscript>
element is not rendered or displayed. This is because the primary content, which relies on scripts, is expected to function correctly, making the fallback content unnecessary.
<noscript>
<p>JavaScript is required to view this content.</p>
</noscript>