Previous Next

HTML Anchor Tag

HTML anchor tags <a> are employed to make hyperlinks on web pages. It allows you to link to other websites, resources, or specific sections of the same website.

Syntax:

<a href="your path"> link name </a>

Attributes

Attributes Description
download Declares that upon a user clicking
on the link, the target is downloaded.
href Defines the URL of the
page that the link is pointing to.
rel Defines the relationship between
the current and associated document.
target Instructs where to open
the document linked

Target Attribute Values

Browser links typically comply with the following conventions:

Example:

 <a href=""> Visit my website </a>
Previous Next