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

Teach you the detailed process of installing DOClever with Docker Compose

Table of contents 1. What is Docker Compose and h...

SQL Get stored procedure return data process analysis

This article mainly introduces the analysis of th...

Solution to the error problem of Vscode remotely connecting to Ubuntu

1. Background of the incident: Because of work ne...

A detailed discussion on detail analysis in web design

In design work, I often hear designers participati...

Detailed explanation of the initialization mechanism in bash

Bash Initialization Files Interactive login shell...

Docker compose custom network to achieve fixed container IP address

Due to the default bridge network, the IP address...

How to use CocosCreator for sound processing in game development

Table of contents 1. Basics of audio playback in ...

How to make JavaScript sleep or wait

Table of contents Overview Checking setTimeout() ...

Best Practices Guide for MySQL Partitioned Tables

Preface: Partitioning is a table design pattern. ...