HTML Links

HTML Tutorial

HTML Links

HTML links are created using the <a> (anchor) tag. Links allow users to navigate from one page to another or open websites, files, email addresses, or sections within the same page.

The main attribute used in links is href, which specifies the destination URL.

Basic Link Example


 

Output:
Visit Google (clickable link)

Open Link in a New Tab

Use the target="_blank" attribute:


 

Email Link


 

Phone Link (Mobile Friendly)


 

Link to Another Page in Same Website


 

Link with Tooltip (title Attribute)


 

Internal Page Jump (Bookmark Link)


 

Summary of Useful Link Attributes

AttributePurpose
hrefLink destination
target="_blank"Open link in new tab
titleTooltip text
mailto:Email link
tel:Phone link

 links help users move around websites and access important information quickly.

You may also like...