The a and href attributes HTML use <a> to represent hyperlinks, and in English it is called anchor.
<a>Can be pointing to any file source: an HTML web page, a picture, a movie and TV file, etc. The usage is as follows:
The display text of the <ahref=url> link</a> click on the content in <a></a> to open a link file, and the href attribute indicates the path to the link file.
For example, if you link to the homepage of VeVb.com site, you can say this:
<ahref=https://www.VeVb.com>Dote Software Station VeVb.com Home Page</a>target attribute Use the target attribute to open the link file in a new window.
<ahref=https://www.VeVb.comtarget=_blank>Dote Software Station VeVb.com Home Page</a>
The title attribute uses the title attribute, which allows the mouse to hover over the hyperlink to display the text comments of the hyperlink.
<ahref=https://www.VeVb.comtitle=Chinese site of Dotte Software Website Tutorial and Code>Dote Software Website</a> If you want to comment multiple lines to display, you can use it as a newline.
<ahref=https://www.VeVb.comtitle=Chinese site for Duote Software Website Tutorial and Code>Dote Software Website</a>
The name attribute uses the name attribute, which can be redirected to the specified part of a file.
Use the name attribute to set a pair. First, set the name of the name, and second, set a href to point to this name:
<ahref=#C1>See Chapter 1</a><aname=C1>Chapter 1</a>
The name attribute is usually used to create tableofcontents for a large file. Each chapter creates a link and is placed at the beginning of the file. The Name attribute is set at the beginning of each chapter. When the user clicks on a link to a chapter, the content of this chapter is displayed at the top.
If the browser cannot find the part specified by Name, the beginning of the article will be displayed without an error.
Link to email address In the website, you will often see a link to contact us. Once you click on this link, your email client, such as OutlookExpress, and then display a window for creating a new mail. Such functions can be achieved using <a>.
<ahref=mailto:[email protected]>Contact Sina</a>