The HTML anchor element <a> </a> creates a hyperlink to specifics part on the same HTML page, other web pages, scripts or any other URL adress. The anchor element is used together with the href attribute that contains the URL of the files.

Syntax: <a href="url">text link</a>

example:

<a href="https://itpresent.com">IT present </a>

result:

IT present





Relative and Absolute HTML Links

There are relative and absolute HTML links.

Relative links show the path to files relative to the current document on the same web site or computer. It is recommended for use always where it can be used.

example:
<a href="index.html">All HTML posts</a>


Absolute links/paths contain a complete URL, which includes a HTTPS protocol, the website’s domain name and possibly a specific folders, subfolders and page name.

example:
<a href="https://itpresent.com/web/html/index.html">All HTML posts</a>


More about HTML href links:

HTML Image Links Code Example

Links to specific part on the same HTML page





Privacy Policy