Links

Creates a hyperlink. The href attribute defines the destination URL.

<a href="https://example.com">Visit Site</a>

The URL the link goes to.

<a href="https://google.com">Google</a>

Opens the link in a new tab.

<a href="https://google.com" target="_blank">Open in new tab</a>

Shows a tooltip when mouse hovers.

<a href="#" title="Tooltip text">Hover me</a>

Forces download of the linked file.

<a href="/file.zip" download>Download File</a>

Specifies the relationship between current page and linked one. Common values:

  • noopener, noreferrer, nofollow

<a href="https://example.com" rel="noopener">Secure link</a>

Last updated