a and href attributes HTML uses to represent hyperlinks, which is called anchor in English.
can point to any file source: an HTML web page, a picture, a film and television file, etc. The usage is as follows:
For example, if you link to the home page of the jb51.net site, it can be expressed like this:
target attribute Use the target attribute to open the linked file in a new window.
The title attribute uses the title attribute to allow the mouse to hover over When a hyperlink is on, the text comment of the hyperlink is displayed.
Name attribute Using the name attribute, you can jump to a specified part of a file.
Using the name attribute, you need to set a pair. The first is to set the name of the name, and the second is to set an href to point to this name:
The name attribute is usually used to create a chapter directory (tableofcontents) of a large file. Create a link for each chapter and place it at the beginning of the file, and set the Name attribute 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, it will display the beginning of the article without reporting an error.
Link to email address On websites, you will often see a "Contact Us" link. Once you click this link, your email client, such as Outlook Express, will be triggered, and a window for creating a new email will be displayed. Use to achieve this function.