- Courses
- HTML
- HTML top level tags
- <noscript>
- Purpose of the noscript element in HTML
What is the purpose of the <noscript>
element in HTML?
The <noscript>
element provides alternative content for users with disabled or unsupported scripting.
The <noscript>
element is used to define a section of HTML that will be displayed if the browser does not support scripting or if scripting is turned off. This ensures that users who cannot run scripts still have access to important content or links. It is particularly useful for providing fallback content or instructions to users who may not have JavaScript enabled.
<noscript>
<a href="https://www.example.com/">Visit our site</a>
</noscript>