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.
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">
When the attribute value is set to refresh, define the time interval for automatic document refresh.
Example:
<meta http-equiv="refresh" content="300">
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>
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!