Introduction to the use of HTML element noscript

Introduction to the use of HTML element noscript

noscript definition and usage

The noscript element is used to define alternative content (text) when scripts are not executed.

This tag can be used with browsers that recognize the <script> tag but do not support the script within it.
Differences between HTML and XHTML
NONE
Tips and Notes:
Note: If the browser supports scripting, it will not display the text inside the noscript element.

Note: Browsers that do not recognize the <script> tag will display the content of the tag on the page. To prevent browsers from doing this, you should hide your script in comment tags. Older browsers (those that don't recognize <script> tags) will ignore comments and thus not write the tag's contents to the page, while newer browsers will know how to execute scripts even if they are surrounded by comment tags!

Global properties

The <noscript> tag supports global attributes in HTML.

example

JavaScript


Copy code
The code is as follows:

<body>
...
...</p> <p> <script type="text/javascript">
<!--
document.write("Hello World!")
//-->
</script>

<noscript>Your browser does not support javascript!</noscript>
...
...
</body>

VBScript


Copy code
The code is as follows:

<body>
...
...
<script type="text/vbscript">
<!--
document.write("Hello World!")
'-->
</script>

<noscript>Your browser does not support VBScript!</noscript>
...
...
</body>

<<:  Details of watch monitoring properties in Vue

>>:  Why is the MySQL auto-increment primary key not continuous?

Recommend

How to use watch listeners in Vue2 and Vue3

watch : listen for data changes (change events of...

How to use JS to check if an element is within the viewport

Preface Share two methods to monitor whether an e...

In-depth understanding of this in JavaScript

In-depth understanding of this in Js JavaScript s...

Several principles for website product design reference

The following analysis is about product design pr...

Implementation of Nginx load balancing cluster

(1) Experimental environment youxi1 192.168.5.101...

Detailed explanation of dynamic Christmas tree through JavaScript

Table of contents 1. Animated Christmas Tree Made...

Usage and demonstration of ref in Vue

ref definition: used to register reference inform...

Detailed explanation of Navicat's slow remote connection to MySQL

The final solution is in the last picture If you ...

What is jQuery used for? jQuery is actually a js framework

Introduction to jQuery The jQuery library can be ...

Example of how to optimize MySQL insert performance

MySQL Performance Optimization MySQL performance ...

JavaScript example code to determine whether a file exists

1. Business Scenario I have been doing developmen...

How to operate json fields in MySQL

MySQL 5.7.8 introduced the json field. This type ...

30 excellent examples of color matching in web design

Today, this article has collected 30 excellent cas...

Teach you how to build Tencent Cloud Server (graphic tutorial)

This article was originally written by blogger We...

Detailed explanation of using INS and DEL to mark document changes

ins and del were introduced in HTML 4.0 to help au...