Home > Common Problem > body text

How to implement page jump in html

王林
Release: 2021-06-21 13:55:43
Original
4574 people have browsed it

The way to achieve page jump in html is to add a meta tag at the head of the html document and set the jump time and page through the meta tag, for example [].

How to implement page jump in html

The operating environment of this article: windows10 system, html 5, thinkpad t480 computer.

We can use meta tags in html to implement jumps. Through meta tags, we can set the jump time and page. There may be many people who don’t know much about meta tags. Let’s briefly introduce meta tags. The

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

For example, the following examples:

Define document keywords for search engines:

<meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript">
Copy after login

Define web page description:

<meta name="description" content="Free Web tutorials on HTML and CSS">
Copy after login

Define page Author:

<meta name="author" content="Hege Refsnes">
Copy after login

Refresh the page every 30 seconds:

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

So how do we use meta tags to achieve page jumps?

<head>
    <!--只是刷新不跳转到其他页面 -->
    <meta http-equiv="refresh" content="5">
    <!--定时转到其他页面 -->
    <meta http-equiv="refresh" content="5;url=index.html"> 
</head>
Copy after login

Related recommendations: html video tutorial

The above is the detailed content of How to implement page jump in html. 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