<a>
HTML <a> Element Reference
The HTML <a> element creates a hyperlink to a URL, file, email address, telephone number, or location in a page.
Categories
- Flow content
- Phrasing content
- Interactive content
Tag omission
Neither the start tag nor the end tag may be omitted.
Content model
- Transparent content, without interactive descendants or nested a elements.
Attributes
Examples
Basic hyperlink
Use href to link to another URL.
<a href="https://tool.io/">Visit Tool.io</a>Document fragment
A fragment URL links to an element with the matching id.
<a href="#examples">Jump to the examples</a>