HTML <noscript> tag

HTML <noscript> tag : Definition

• The <noscript> tag is used to defines an alternate content for users that either he have disabled scripts in his browser or his has a browser that doesn't support script.

• In HTML5 the <noscript> element can be written within the <head> and <body> tag but in HTML4 it should be defined within the <body> tag.

• If the <noscript> is used with the <head> element, it has to contain only the <link>, <style> and <meta> tags.

Html <noscript> tag example

<!DOCTYPE html>
<html lang="en">
    <title>HTML noscript tag exanoke</title>
    <script type="text/javascript">
        document.write("Hello World! <br>")

        document.write("Welcome to AimToCode")
    <noscript>Your browser does not support JavaScript!</noscript>

Output :