HTML link tag with example
HTML Tutorial » HTML link tag with example
A link or hyperlink is a connection between two or more web pages, or from one web page resource to another web page.
In most browsers, HTML links will appear in the following form as default:
- An unvisited link is underlined and blue color.
- A visited link is underlined and purple color.
- An active link is underlined and red color.
HTML link tag href attribute in source anchor specifies the address of the destination anchor.
Syntax:
HTML button
<a href="url">Text link</a>
Browser Support HTML link tag
Element | ![]() Chrome |
![]() IE |
![]() Firefox |
![]() Opera |
![]() Safari |
HTML link tag | Yes | Yes | Yes | Yes | Yes |
How to Insert Hyperlink in HTML Page
Add the URL for the link in the <a href=” ”>. Just keep in mind that you should use the <a>…</a> tags inside <body>…</body> tags.
Example
<!DOCTYPE html>
<html>
<head>
<title>How to Insert Hyperlink in HTML Page </title>
</head>
<body>
<h1>How to Insert Hyperlink in HTML Page</h1>
<p> How to add / create link in HTML Page </p>
<a href='https://www.agernic.com/html-tutorial/html-link-open-in-new-tab-or-window-how-to-create-link.html'>
Open Link in new tab </a>
</body>
</html>
Related subjects:
CSS link color link without underline
Create html link without underline
Open link in new tab - Create link
html link js, onclick, tag, to pdf, code, open in new tab, css, color, to section of pagehtml link js, onclick, tag, to pdf, code, open in new tab, css, color, to section of page
HTML link tag, link HTML tag, create html link without underline
HTML link tag with example - html tutorial
Online Editor
This tool makes it easy to create, adjust, and experiment with custom colors for the web.
HTML 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

Find here examples of creative and unique website layouts.
Free CSS HTML Menu

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