HTML noscript tag
noscript tag in HTML:
The "noscript" tag in HTML is used to provide alternative content that should be displayed when a user's web browser doesn't support or has disabled JavaScript.
It's typically used to offer non-JavaScript fallback content or instructions.
Example
The "noscript" tag is sort of a digital backup plan.
It's used to define content material with a purpose to be proven to users if their browser doesn't guide JavaScript or if JavaScript is disabled.
Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome to Our Website</title>
<style>
body {
font-family: 'Arial', sans-serif;
text-align: center;
margin-top: 50px;
font-size: 18px;
}
h1 {
color: #3498db; /* Blue color for heading */
}
p {
margin-top: 10px;
color: #34495e; /* Dark blue-gray color for text */
}
noscript {
margin-top: 20px;
color: #e74c3c; /* Red color for noscript message */
}
</style>
</head>
<body>
<h1>Welcome to Our Website</h1>
<p>This page uses JavaScript to enhance the user experience.</p>
<noscript>
<p>Please enable JavaScript to fully enjoy our website.</p>
</noscript>
</body>
</html>
Try it Yourself »