0% found this document useful (0 votes)
9 views1 page

Types of HTML Links Explained

The document outlines various types of links in HTML using the <a> tag, including external, internal, download, email, phone, and page anchor links. It also lists useful attributes such as target and rel that enhance link functionality and security. Each link type is accompanied by its code and purpose for better understanding.

Uploaded by

mj6861929
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Types of HTML Links Explained

The document outlines various types of links in HTML using the <a> tag, including external, internal, download, email, phone, and page anchor links. It also lists useful attributes such as target and rel that enhance link functionality and security. Each link type is accompanied by its code and purpose for better understanding.

Uploaded by

mj6861929
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Written by M Junaid Orakzai

Types of Links in HTML

In HTML, we use the <a> tag to create different types of links. Below are the main types of links with
examples and uses.

Type Code Purpose


External Link href="[Link] Link to another website

Internal Link href="[Link]" Link to another page on your site

Download Link href="[Link]" download Downloads a file

Email Link href="[Link] Opens email app

Phone Link href="[Link] Initiates phone call

Page Anchor href="#contact" Scrolls to part of same page

Useful Attributes:
- target="_blank" - Opens link in new tab

- rel="noopener" - Improves security

- download - Makes file downloadable

You might also like