Then <a> Anchor Element in HTML

The tag defines a hyperlink, which is used to link from one page to another.

The most important attribute of the element is the href attribute, which indicates the link's destination.

Few Common Attributes which are used with the Anchor Tag are as follows:

  1. download : Specifies that the target will be downloaded when a user clicks on the hyperlink
  1. href: Specifies the URL of the page the link goes to

  2. target: Specifies where to open the linked document

  3. _blank
  4. _parent
  5. _self
  6. _top

  7. type: Specifies the media type of the linked document

5.media: Specifies what media/device the linked document is optimized for