HTML anchor (called Cat number)

Source: Internet
Author: User
I didn't understand that before. The concept of the document and the experiment finally understood the concept

When using a named anchor (named anchors), we can create a link that jumps directly to the named anchor, such as a section in the page, so that the user doesn't have to scroll the page constantly to find the information they need.

Syntax for named anchors:
<a name= "label" > anchor (Text displayed on page) </a>  or <a id= "label" > anchor </a>   ID and name line
href= "#tips" > Helpful tips </a>
Obvious edition instances

<a id= "Tips" > Basic considerations-Helpful tips </a>
<div></div>
<a href= "#tips" >dasdasda</a>

CSS div{height:2000px;}

 Extended

    You can also jump to another page tag anchor plus behind

href= "Http://www.w3school.com.cn/html/html_links.asp#tips" > Helpful tips </a>

HTML anchor (called Cat number)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.