Member-only story

Navigating the Web: A Beginner’s Guide to Creating Hyperlinks in HTML

The different types of links you can create on your HTML page

Max N
2 min readMay 30, 2023
Photo by Shannon Potter on Unsplash

Hyperlinks: The Gateway to the World Wide Web

A hyperlink is a clickable element on a web page that takes you to another web page or resource. In HTML, you create a hyperlink using the anchor tag <a> and the href attribute.

Example:

<a href="https://www.example.com">Visit Example.com</a>

Relative vs. Absolute Paths: Finding Your Way Around

When creating hyperlinks, you can use either relative or absolute paths:

Relative Path

A path that is relative to the current web page. Use it when linking to resources within your own website.

Example:

  <a href="about.html">About Us</a>

Absolute Path

A complete URL that includes the protocol (e.g., https://) and domain name. Use it when linking to external websites.

Example:

  <a href="https://www.google.com">Google</a>

Email Links: Connecting with

--

--

Max N
Max N

Written by Max N

A writer that writes about JavaScript and Python to beginners. If you find my articles helpful, feel free to follow.

No responses yet