AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL

HTML link - hyperlink


<< Previous Page
HTML comment
Next Page >>
div class container

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:

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

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.

Example: shows how to create a link - hyperlink
<a href="https://www.agernic.com/">Visit AgerNic</a>
Note: A link does not necessarily have to be text, it can be an image, a document or any other HTML element!

 

Browser Support HTML link tag

Element chrome browser
 Chrome
ie browser
 IE
firefox browser
 Firefox
opera browser
 Opera
safari browser
 Safari
HTML link - hyperlink Yes Yes Yes Yes Yes

By default in all browsers, links will appear as:

 

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:

Example: target="_blank" to open the linked document in a new browser:
       <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):

Example
<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):.

Example
<a href="mailto:someone@example.com">Send email</a>

 

Summary of description

 

<< Previous Page
HTML Button Style
Next Page >>
HTML Button Action

 



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

Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


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


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


HTML Img Background
HTML Image Link
HTML Image Size
HTML Text Style
HTML Text Align
HTML Text Size
HTML Text Color Style
HTML Text Color
HTML Table Color
HTML Table Row Colspan
HTML Table Width
HTML Table Style
HTML Table Border
HTML Table
HTML Font Face
HTML Font Size
HTML Font Color
HTML Headings
HTML div border color
HTML div class
HTML class container
HTML form action
HTML comment
HTML link new tab
HTML link underline
HTML link tag
HTML button action
HTML button onclick
HTML button link
HTML table style
HTML image
HTML colors
HTML div style
Text, paragraf in HTML
HTML Tags Attributes
HTML - Elements
HTML Introduction
Home HTML Tutorial
Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


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


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


Upload Image, display, edit and delete i...
Login Form with Image background...
How to Create an Image with Transparent ...
Portfolio Gallery Website with filtering...
Simple pagination script PHP MySQLi...
Center Image in div...
Image Hover Overlay Fade...
Sticky image / element / div on scroll...
Responsive images...
Create rounded image in HTML CSS...
Add border around image...
Position Text Over an Image HTML CSS res...
Create a Slideshow Images Gallery...
Create a Sticky Sidebar...
Search bar using CSS HTML...
Shrink Navigation Menu on Scroll...
How to Create Accordion HTML Templates...
Dropdown menu in the navigation bar...
Responsive Top Navigation Bar with mobil...
Split horizontal navigation bar...