The various HTML documents of the website are connected together through hyperlinks to form a coherent website. Users can click on the hyperlink to jump to the page they want to browse. Therefore, hyperlinks can be seen in any website and are the core component of connecting the website to form the whole.
Anchors layout HTML hyperlinks are triggered by the <a> tag as the anchor point. The anchor point needs to have a vector, which can be a text, a word, or a sentence, or an image or a shape. When the mouse moves to a carrier with an anchor point, the mouse will become a small hand state, indicating that the user can click. After the user clicks this anchor point, he will jump to the address corresponding to the href in this <a> tag. How to use jump attributes In HTML links, using the href attribute can create a link to another document, usually used for page redirection. This is very common, so I won't explain it anymore.Use the name attribute to create bookmarks inside the document, allowing hyperlinks to jump to a part of the page inside the document. For example: Set <a name=dian1″></a> to place it in the middle of the page. Then set the <a href=#dian1″> to jump to the middle of the page</a> anchor point at the head of the page. When the user clicks this anchor point at the head of the page, the page will scroll to the location where the name bookmark is located, that is, the middle of the page.
HTML link syntax The code for HTML links is very simple to use. For example: XML/HTML Code Copy content to clipboard