HTML <a> Element Reference

The HTML <a> element creates a hyperlink to a URL, file, email address, telephone number, or location in a page.

<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>

Related references

Description

The HTML <a> element creates a hyperlink to a URL, file, email address, telephone number, or location in a page.

References

  1. HTML Living Standard: The a element
  2. MDN: <a> — The Anchor element

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies