HTML Tag Reference

A quick reference for all HTML tags and their attributes. Find what you need to build your web pages.


The <a> 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.

Example

index.html
<a href="https://www.google.com" target="_blank">Visit Google</a>

Attributes

Attributes for the <a> tag:

AttributeDescription
hrefSpecifies the URL of the page the link goes to.
targetSpecifies where to open the linked document (e.g., _blank, _self, _parent, _top).
relSpecifies the relationship between the current document and the linked document.
downloadSpecifies that the target will be downloaded when a user clicks on the hyperlink.