What is an anchor point? Anchor usage

Anchor: It is a kind of hyperlink in web page production , also called named anchor . A named anchor, like a quick locator , is a hyperlink within a page that is quite common.
     English name: anchor

Anchor usage: The anchor is set with the id attribute. If an a tag has the id attribute (or the name attribute—more are not supported now), then it is an anchor of the page.
        <a id=" anchor ">My Work</a>
        or:

        <a name=" anchor ">My work</a> 


                1. In-page anchor
        <a href="# anchor ">Click me to view my work</a>     //Hyperlink, the anchor of the linked page
                2. Cross-page anchor
        <a href=" page .html# anchor ">Click me to view my work</a> //Hyperlink, the link is the anchor of another interface

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325686988&siteId=291194637