10 Types of Hyperlink in HTML with Examples: Complete Guide

In the realm of HTML, hyperlinks serve as the backbone of web navigation, connecting different pages, resources, and even different sections of the same page. Understanding the various types of hyperlinks in HTML is crucial for creating effective, navigable, and SEO-friendly websites. Let's delve into the different types of hyperlinks and explore their use cases with practical examples.

A Basic Guide to Links – How to Use HTML Hyperlinks
A Basic Guide to Links – How to Use HTML Hyperlinks

Hyperlinks are created using the <a> tag in HTML, with the 'href' attribute specifying the link's destination. The most common type is the external link, which leads to another website or a different page on the same site. However, several other types of hyperlinks offer unique functionality and improve user experience.

How to Code a Hyperlink in HTML (it's easier than you think!)
How to Code a Hyperlink in HTML (it's easier than you think!)

Types of Hyperlinks in HTML

To better understand the different types of hyperlinks, let's explore each with relevant examples.

Difference Between Link and Hyperlink Editing Service
Difference Between Link and Hyperlink Editing Service

1. Absolute and Relative Links

Absolute links specify the full URL, starting with the protocol (e.g., <a href="https://www.example.com">). On the other hand, relative links use a path relative to the current page (e.g., <a href="/path/to/page">).

Client Challenge
Client Challenge

Example of an absolute link:
<a href="https://www.example.com/about">About</a>

Example of a relative link:
<a href="/contact">Contact</a>

2. Internal and External Links

SEO for Lawyers: Definitive Guide to SEO for Law Firms in 2026
SEO for Lawyers: Definitive Guide to SEO for Law Firms in 2026

Internal links point to other pages within the same website, vorbeous to improve site navigation and user experience (e.g., <a href="contact.html">). External links lead to pages on different websites, helping users discover and explore relevant resources (e.g., <a href="https://www.example.com">).

Example of an internal link:
<a href="/privacy-policy">Privacy Policy</a>

Example of an external link:
<a href="https://www.example.com">Example Website</a>

Difference Between Hypertext and Hyperlink
Difference Between Hypertext and Hyperlink

3. Email Links

Email links allow users to easily start an email with a default recipient and subject. The recipient is specified using the 'mailto:' protocol (e.g., <a href="mailto:info@example.com">).

the different types of web pages are shown
the different types of web pages are shown
Learn to create links in HTML.
Learn to create links in HTML.
Internal vs external links (HTML basics) 👇
Internal vs external links (HTML basics) 👇
a screen shot of a web page with the words'html input types '
a screen shot of a web page with the words'html input types '
Links in HTML
Links in HTML
How to Hyperlink - SlideServe
How to Hyperlink - SlideServe
How to Hyperlink
How to Hyperlink
Hypertext vs Hyperlink: Difference and Comparison
Hypertext vs Hyperlink: Difference and Comparison
History of Hyperlinks
History of Hyperlinks
Links in HTML: Create, Example - Scientech Easy
Links in HTML: Create, Example - Scientech Easy
Link Style Examples
Link Style Examples
an image of a web page with the text'html link target attribute '
an image of a web page with the text'html link target attribute '
HTML input types
HTML input types
LinkedIn Login, Sign in | LinkedIn
LinkedIn Login, Sign in | LinkedIn
About HTML tags
About HTML tags
an image of a web page with the text'html inputt types '
an image of a web page with the text'html inputt types '
an image of a web page with the words in different languages
an image of a web page with the words in different languages
an image of a web page with the text'how to write a html list '
an image of a web page with the text'how to write a html list '
How to Create a Hyperlink in Microsoft Word
How to Create a Hyperlink in Microsoft Word
The HTML Backbone
The HTML Backbone

Example of an email link:
<a href="mailto:info@example.com">Contact Us</a>

4. Phone Number Links

Phone number links allow users to dial a phone number directly from a mobile device. The number is specified using the 'tel:' protocol (e.g., <a href="tel:+1-123-456-7890">).

Example of a phone number link:
<a href="tel:+1-123-456-7890">Call Us</a>

5. Anchor Links

Anchor links, or intra-page links, take users to a specific part of the same page. Anchors are created with the (<a> tag, and the '#' symbol is used to target another element with a unique ID (e.g., <a href="#section2">).

Example of an anchor link:
<a href="#terms">Terms of Service</a>

Best Practices and SEO Implications

Understanding the different types of hyperlinks also means appreciating their impact on user experience and search engine optimization (SEO). For instance, internal linking helps search engines discover new content, while external linking can help build credibility and relationships. Clearly labeling anchor links makes content more accessible and easier to navigate. Email and phone number links provide convenient ways for users to get in touch.

In terms of HTML and SEO, hyperlinks play a crucial role in structuring content, defining page hierarchies, and distributing authority among pages. They contribute to creating a comprehensive and user-centric information architecture, which ultimately improves the overall website performance.

As a final thought, take advantage of the different types of hyperlinks to create a seamless and convenient user experience. Don't forget to monitor and update your links regularly to avoid broken links, which can negatively impact both user experience and SEO.

Related Articles

Example Image Tag Html Balloon Marquee Tutorial What Is The Use Of Image Tag In Html What Is The Code For Image In Html How To Use Hyperlink In Html All Attributes Of Marquee Tag In Html Types Of Marquee In Html How To Use Marquee Tag In Html For Images Marquee Letters Tutorial What Is The Correct Html For Creating A Hyperlink Example