HTML link - hyperlink
HTML Tutorial » HTML link - hyperlink
Study in this chapter: How to Create Links to Other Pages in HTML?
Links are found in almost all web pages where they allow users to click from one page to another, or navigate across the respective web pages.
HTML links are hyperlinks.
You can click a link and jump to another page or document.
When you hover over a link, the mouse arrow will turn into a little hand.
Syntax:
The text of the link represents the part that will be visible to the reader who has reached the page.
By clicking on the link text, users will be sent to the URL specified in the HTML code.
Browser Support HTML link tag
Element | ![]() Chrome |
![]() IE |
![]() Firefox |
![]() Opera |
![]() Safari |
HTML link - hyperlink | Yes | Yes | Yes | Yes | Yes |
By default in all browsers, links will appear as:
- Unvisited link - is underlined and blue
- Visited link - is underlined and purple
- Active link - is underlined and red
HTML Links - The target Attribute
By default, the link page will be displayed in the current browser window and if you want to change this, you must specify a target for respectively link.
The target attribute specifies where to open that linked document.
The target attribute can have one of the following characteristics:
- _self - Default. Opens the document in the same window where it was clicked
- _blank - Opens the document in a new window
- _parent - Opens the document in the parent frame
- _top - Opens the document in the entire body of the window
<a href="https://www.agernic.com/" target="_blank">Visit AgerNic!</a> <br />
<a href="https://www.agernic.com/" target="_self">Visit AgerNic!</a> <br />
<a href="https://www.agernic.com/" target="_parent">Visit AgerNic!</a> <br />
<a href="https://www.agernic.com/" target="_top">Visit AgerNic!</a>
Related subjects:
HTML link open in new tab/window
Hyperlink without underline
HTML link tag - Create link
Absolute URLs vs. Relative URLs
A local link/hyperlink (link/hyperlink to a page on the same website) is specified only with a relative URL (without the "https://www" part):
<h2>Absolute URLs</h2>
<p><a href="https://www.agernic.com/">AgerNic</a></p>
<p><a href="https://www.google.com/">Google</a></p>
<h2>Relative URLs</h2>
<p><a href="html-tutorial/html-link-tag-with-example.html">HTML link tag</a></p>
<p><a href="/css-tutorial.html">CSS Tutorial</a></p>
Tags: How do you link to another page in HTML? How to Create Links to Other Pages in HTML, make hyperlink, css file, to another page, open in a new tab, target
Creating Link to an Email Address
Linking to an Email Address you have to use mailto: inside the href attribute to create a link that opens the user's email program (to let them send a new email):.
<a href="mailto:someone@example.com">Send email</a>
Summary of description
- <a> - define a link
- href - define the link address
- target - define where to open the linked document
- mailto: - create a link that opens the user's email program
How to link one page to another page in HTML, make hyperlink, css file, open in a new tab, target
HTML link - hyperlink - html tutorial
This tool makes it easy to create, adjust, and experiment with custom colors for the web.

Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.

Find here examples of creative and unique website layouts.

Find here examples of creative and unique website CSS HTML menu.