HTML - <noscript> Tag
Introduction to <noscript> Tag
The HTML <noscript> tag is used to define the content that should be displayed if the browser does not support JavaScript or if JavaScript is disabled.
The <noscript> tag is used to provide the fallback messages or content, improving the accessibility and ensuring usability for all users. It can contain any type of HTML elements, such as text, images or forms.
Syntax
Following is the syntax of HTML <noscript> tag −
<noscript> ... </noscript>
Attributes
HTML noscript tag supports only Global Attributes
Example : Basic Usage
Lets look at the following example, where we are going to consider the basic usage of the <noscript> tag.
<!DOCTYPE html>
<html>
<head>
<title>HTML noscript Tag</title>
</head>
<body>
<script type="text/JavaScript">
document.write("Hello JavaScript!")
</script>
<noscript>
Your browser does not support JavaScript!
</noscript>
</body>
</html>
Supported Browsers
| Tag | ![]() |
![]() |
![]() |
![]() |
![]() |
|---|---|---|---|---|---|
| noscript | Yes | Yes | Yes | Yes | Yes |
html_tags_reference.htm
Advertisements




