HTML noscript Tag - HTML Tutorial

HTML noscript Tag

BLUF: Mastering HTML noscript Tag is a fundamental step in becoming a web developer. This guide covers the structure, syntax, and best practices for using this HTML element effectively.
Key Lesson: HTML noscript Tag

Web structure starts with solid HTML. Learn how HTML noscript Tag contributes to accessible and semantic web pages in the tutorial below.

HTML <noscript> element is utilized to specify alternative content for users who have disabled scripting in their browser and still wish to view the webpage.

The <noscript> element can be used within <head> and <body> tags.

While using noscript tag inside <head> element, <noscript> must contain <link>, <style>, and <meta> tags.

The content within the <noscript> tag will appear on the webpage if the user's browser does not support scripting.

The example of noscript tag is given below:

Example

<script>

document.write("Welcome to our tutorial")

</script>

<noscript>Sorry! Your browser does not support JavaScript.!</noscript>

Output:

Difference between HTML4 and HTML5

In HTML 4.01, <noscript> tag can be used inside the <body> tag only but in HTML5 it can be used inside <head> and <body> tag.

Difference between HTML and XHTML

The noscript tag is not supported in XHTML.

The noscript tag supports global and event attributes in HTML.

Supporting Browsers

Element Chrome IE Firefox Opera Safari
<noscript> Yes Yes Yes Yes Yes

Input Required

This code uses input(). Please provide values below:

Logic Practice
Install Logic Practice
Add to home screen for a faster app-like experience