Summary -

In this topic, we described about the <noscript> tag along with detailed example.

The <noscript> tag represents alternative content for users when browser doesn't support scripts. <noscript> is used if scripting is unsupported or disabled. <noscript> element can be used in both <head> and <body>.

If <noscript> element coded inside the <head> element, <noscript> must contain only <link>, < style>, and <meta> elements. The content in <noscript> can be viewable by only those who have scripting disabled.

If scripting is enabled, the user won't see this content. The <noscript> tag can be used in combination with the <script> tag.

Syntax -

<noscript>….</noscript>

Example -

<!DOCTYPE html>
<html lang="en">
	<head>
		<title>Link Tag</title>
		<script>
			document.write("Hello World!")
		</script>
		<noscript>
			<link href="temp.css" rel="stylesheet">
		</noscript>
	</head>
	<body>
		<!-- Content of the HTML document -->
	</body>
</html>

Output -