The <noscript> tag provides alternative content for users whose browsers have JavaScript disabled or don't support JavaScript. It's placed in the body or head section and displays content when JavaScript is unavailable.
How Noscript Works
The <noscript> tag can contain any HTML content - text, images, links, forms, etc. When JavaScript is enabled, the noscript content is hidden. When JavaScript is disabled, the noscript content is displayed instead of JavaScript-dependent content.
Best Practices
Always provide meaningful alternative content. Use noscript for critical functionality that requires JavaScript. Consider progressive enhancement - build a base experience that works without JavaScript, then enhance with JavaScript. Ensure noscript content is accessible and useful.
Progressive Enhancement
Noscript is part of progressive enhancement - building a base experience that works without JavaScript, then enhancing with JavaScript. This ensures all users can access your content, regardless of their browser capabilities or settings.