<a>

The <a> tag defines a hyperlink. The href attribute specifies the URL of the page the link goes to. The URL can be relative or absolute.

Examples of relative URLs:

<a href="image-1.jpg">Image in the same directory as the current page.</a>

<a href="../image-2.jpg">The image in the directory which is one level above than the original page.</a>

<a href="/images/image-3.jpg">The path from the root directory of the site.</a>

An example of absolute URL:

<a href="https://htmlcss.pro/images/image-1.jpg">AnĀ absolute URL.</a>