How to create a jump to the end of the page hyperlink in html5

青灯夜游
Release: 2022-01-18 11:39:30
Original
5452 people have browsed it

html5 Method to create a hyperlink that jumps to the footer of the page: 1. Create an element at the footer of the page and set it as the anchor point. The syntax is ".. .name>"; 2. Create a hyperlink and associate it with the anchor point. The syntax is "Click me to jump to the end of the page a>".

How to create a jump to the end of the page hyperlink in html5

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

In HTML5, you can use anchor links to achieve the effect of jumping to the end of the page.

What is an anchor link?

The link in HTML should be called "anchor" correctly. It names anchor link (also called bookmark link) and is often used for web pages with large and cumbersome content. Clicking on a named anchor not only allows us to point to the document, but also to a specific paragraph on the page. It can also be used as a convenient tool for "precise linking" to bring the linked object closer to focus. It is convenient for viewers to view the content of the web page. It is similar to the table of contents page numbers or chapter reminders when we read books. Tag anchors are the best method when you need to target a specific part of the page.

The anchor point is the locator!

Create a jump hyperlink to the end of the page

Step 1: Set the anchor point

<div id="bottom">页尾</div>
Copy after login

Step 2: Set Start the switch of the locator

<a href="#bottom">点我跳转页尾 </a>
Copy after login

Sample code:



	
		
		
	
	
		<a href="#bottom">点我跳转页尾 </a>
		
页头
<div id="bottom">页尾</div>
Copy after login

How to create a jump to the end of the page hyperlink in html5

Related recommendations: "html video tutorial"

The above is the detailed content of How to create a jump to the end of the page hyperlink in html5. 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