a

Support

Defines a link to the same or to another document, or defines a destination anchor.

The a (anchor) tag is one of the most useful HTML elements.

You can define a destination anchor with the name or a source anchor with the href attribute of the a element. A source anchor can refer to a document, a file or a destination anchor, or it can open the email client of the user, or it can execute a JavaScript code.

Example

<a name="top"></a>
<a href="http://www.apple.com">Visit the Apple website</a>
<a href="contact.html" title="Contact Us" target="_blank">Contact Us</a>
<a href="#top">Return to the top</a>

Preview

Visit the Apple website Contact Us Return to the top