Use href to simply click on a link to jump to a specified place on the page

Use href to simply click on a link to jump to a specified place on the page
After clicking the a tag in the page, you want to make it jump to the corresponding place in the page. The method is very simple. The content in the href in the a tag is the same as the id of the area you want to jump to, for example:

Copy code
The code is as follows:

<a href="#jump">Click me to see</a>
<p id="jump">I am the corresponding content of this area</p>

If you want to jump to the corresponding place on other pages, just add the link address before #jump in href, that is: <a href="link address#jump">Click me to see</a>

That's it. Isn't it simple?

<<:  Several solutions for CSS record text icon alignment

>>:  Automated front-end deployment based on Docker, Nginx and Jenkins

Recommend

Detailed tutorial for installing ElasticSearch:7.8.0 cluster with docker

ElasticSearch cluster supports動態請求的方式and靜態配置文件to ...

MySQL query data by hour, fill in 0 if there is no data

Demand background A statistical interface, the fr...

How to view the database installation path in MySQL

We can view the installation path of mysql throug...

Introduction to nesting rules of html tags

There are many XHTML tags: div, ul, li, dl, dt, d...

Summary of learning Docker commands in one article

Table of contents Introduction Mirror repository ...

Detailed explanation of the usage and difference between nohup and & in Linux

Example: We use the Python code loop_hello.py as ...

Detailed explanation of the principle and usage of MySQL views

This article uses examples to illustrate the prin...

Let's talk briefly about the changes in setup in vue3.0 sfc

Table of contents Preface Standard sfc writing me...

How to regularly clean up docker private server images

Using CI to build docker images for release has g...

DHTML objects (common properties of various HTML objects)

!DOCTYPE Specifies the Document Type Definition (...

Four completely different experiences in Apple Watch interaction design revealed

Today is still a case of Watch app design. I love...

Install MySQL 5.7.17 in win10 system

Operating system win10 MySQL is the 64-bit zip de...

How to set up scheduled backup tasks in Linux centos

Implementation Preparation # Need to back up the ...