What is the html forced jump code?

WBOY
Release: 2021-12-30 15:54:27
Original
2879 people have browsed it

In HTML, the forced jump code is ""; the "http-equiv" of the meta tag and The content attribute is used to set a forced jump to the page, and the url is used to set the jump address.

What is the html forced jump code?

The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.

htmlWhat is the forced jump code

tag provides metadata of the HTML document. The metadata will not be displayed on the client, but will be parsed by the browser.

The tag is usually located within the area.

The http-equiv attribute provides the HTTP header with information/value of the content attribute.

The syntax is:

<meta http-equiv="content-type|default-style|refresh">
Copy after login

When the attribute value is set to refresh, define the time interval for automatic document refresh.

Example:

<meta http-equiv="refresh" content="300">
Copy after login

The content attribute gives the value associated with the http-equiv or name attribute.

The example is as follows:

<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="5;url=https://www.php.cn/"> 
</head>
<body>
    
</body>
</html>
Copy after login

The above example will force a jump after 5 seconds of page refresh.

Recommended tutorial: "html video tutorial"

The above is the detailed content of What is the html forced jump code?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template