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.

Similar Reads

Attributes

The table below shows attributes and their respective descriptions....

Common Examples

1. Creating Basic Links:...

Browser Support

Google Chrome: 1 and aboveMicrosoft Edge: 12 and aboveFirefox: 1 and aboveOpera: 15 and aboveSafari: 1 and above...

Contact Us