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