HTML Dog

Skip to navigation

HTML Tag: a

Anchor. Primarily used as a hypertext link. The link can be to another page, a part of a page or any other location on the web.

Note: An anchor (a point in a page where a link can jump to) does not need to be defined with the a tag. Applying the id attribute to any tag will achieve this.

Required Attributes

Optional Attributes

Example


<p><a href="http://www.htmldog.com">Link to a URI</a></p>
<p><a href="#content">Link to a page anchor</a></p>