← All references
<a> (Anchor)
<a href="url">text</a>Create hyperlinks.
<a> Tag
The anchor tag creates links to other pages, sections, emails, or phone numbers.
Attributes
href— the URL to link to.target="_blank"— open in new tab.rel="noopener"— security for external links.id="name"— anchor for in-page jumps.
Example
<a href="https://example.com">External link</a><br>\n<a href="#section">Jump to section</a><br>\n<a href="mailto:hi@example.com">Email us</a><br>\n<a href="https://w3primecode.com" target="_blank" rel="noopener">Open in new tab</a>