(<a href="http://www.w3schools.com">Visit W3Schools.com!</a>) <a href="http://www.w3schools.com">Visit W3Schools.com!</a> Try it yourself! (more examples at the bottom of this page) Definition and Usage The <a> tag defines an anchor. An anchor can be used in two ways: - To create a link to another document, by using the href attribute
- To create a bookmark inside a document, by using the name attribute
The a element is usually referred to as a link or a hyperlink. The most important attribute of the a element is the href attribute, which indicates the link’s destination. By default, links will appear as follows in all browsers: - An unvisited link is underlined and blue
- A visited link is underlined and purple
- An active link is underlined and red
|