Example sharing of anchor tag usage in HTML


Anchor mark usage:
Linking to a specific location in the same document is called an anchor link.
The anchor is used to select a target anchor point to create a location tag, which is determined by the value of the name attribute of the < a > tag

Location tag name. The format is:
< a name = “anchor tag” >
The property name is used to create a named anchor. When using a named anchor, we can create a finger that jumps directly to the page

Instead of having the reader drag through the scroll bar to find the part he or she needs.
Here is the syntax for creating a named anchor:
<a name=”label”>Text to be displayed</a>
The property name is used to create a named anchor. The name of the anchor can be named with the text you like.
The following line defines a named anchor:
<a name=”tips”>Useful Tips Section</a>

Then create a link to the target tag anywhere on the page. The name of the link address on the title should be the same as the location tag name, and the “#” sign should be added in front of it. The format is:
< a = “anchor tag” > “
A named anchor is not particularly different from a normal link when it is displayed.
In order to link directly to the “key points” section, it is generally necessary to add the symbol # and the anchor name at 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>

To the file “HTML”_ Links. ASP “the syntax of available anchor links inside a page is as follows:
<a href=”#tips”>Jump to the Useful Tips Section</a>

It’s too tired to read the text: Here’s a simple example for everyone

Tip: you can modify part of the code before running

Copy to your page, try it is not very easy to use it!

Recommended Today

Large scale distributed storage system: Principle Analysis and architecture practice.pdf

Focus on “Java back end technology stack” Reply to “interview” for full interview information Distributed storage system, which stores data in multiple independent devices. Traditional network storage system uses centralized storage server to store all data. Storage server becomes the bottleneck of system performance and the focus of reliability and security, which can not meet […]