The method of using anchor is to select a target positioning point to create a positioning mark, and use the value of the name attribute of the <a> mark to determine it.
Positioning tag name. The format is: <a name=localize tagname>Attribute name is used to create a named anchor. When using a named anchor, we can create a finger that jumps directly to the page
Define the link to the section without having the reader drag through the scroll bar to find the part he/she needs.
Here is the syntax for creating a named anchor:
<a name=label>Text to be displayed</a>
Attribute name is used to create a named anchor. The name of the anchor can be named using the text you like.
The following line defines a named anchor:
<a name=tips>Useful Tips Section</a>
Then create a link to this target mark anywhere on the web page. The link address name created on the title should be the same as the positioning mark name, and a # number should be added before it. The format is:
<a href=#Location tagname>
A named anchor is not particularly different from a normal link when displayed.
In order to directly link to the key points, you generally need to add a symbol # and an anchor name to the end of the requested URL, like this:
<a href=Jump'>http://www.w3schools.com/html_links.asp#tips>Jump to the Useful Tips Section</a>
The syntax for available anchor links to the file html_links.asp (inside a page) is as follows:
<a href=#tips>Jump to the Useful Tips Section</a>
It's too tiring to read the text: Here is a simple example for everyone on Wulin.com:Is it very useful to copy it to your page to try it out?