Expand description
Attribute names for anchor (<a>) elements.
§Purpose
The <a> element creates hyperlinks to other pages, locations within the
same page, files, email addresses, or any other URL.
§Common Attributes
href: The URL that the hyperlink points totarget: Where to display the linked URL (_blank, _self, _parent, _top)rel: Relationship between current and linked documentdownload: Suggests downloading the linked resourcereferrerpolicy: Controls referrer information sent with requests
§Example
<a href="https://example.com" target="_blank" rel="noopener noreferrer">
External Link
</a>
<a href="/page" hreflang="en">Internal Link</a>
<a href="document.pdf" download="filename.pdf">Download PDF</a>