HTML Anchor Tags and Its Example

HTML Anchor Tags:

The most important attribute of the <a> element is the href attribute, which indicates the link's destination.

The anchor element is used to create hyperlinks between a source anchor and a destination anchor. The source is the text, image, or button that links to another resource and the destination is the resource that the source anchor links to.

Hyperlinks are one of the fundamental technologies that make the web the information superhighway, and understanding how to use anchor elements is one of the first things you need to master when learning HTML.

Anchor Example:

<a href="html-anchor-tag.php">Anchor links Example  1</a>
<a href="http://www.aimtocode.com/html-tutorial.php">This is Second Link</a>

Output:


Anchor Links Example 1
Anchor Links Example 2