Browser Support
- Google Chrome: 1 and above
- Microsoft Edge: 12 and above
- Firefox: 1 and above
- Opera: 15 and above
- Safari: 1 and above
HTML Tag
The <a> tag defines a hyperlink, which is used to link from one page to another. The most important attribute of the <a> element is the href attribute, which indicates the link’s destination. This attribute determines where the user is directed upon clicking the link.
Syntax:
<a href = "link"> Link Name </a>
By default, links appear as follows in all browsers:
- Unvisited links: Underlined and blue.
- Visited links: Underlined and purple.
- Active links: Underlined and red.
Note: The <a>
tag supports the Global Attributes in HTML and Event Attributes in HTML.
Contact Us