HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

HTML a Tag

HTML a Tag

 

 

HTML a Tag defines a hyperlink, which is used to link from one page to another. Its most important attribute is href which indicates the destination of the link.

 

Attribute Explanation:-

 

Attribute Value Description
download filename Specifies that target will be downloaded when user clicks on hyperlink
href URL Specifies URL of page link goes to
hreflang language_code Specifies language of linked document
media media_query Specifies what media/device linked document is optimized for
ping list_of_URLs Specifies a space-separated list of URLs to which, when link is followed, post requests with body ping will be sent by browser (in the background). Typically used for tracking.
referrerpolicy no-referrer
no-referrer-when-downgrade
origin
origin-when-cross-origin
same-origin
strict-origin-when-cross-origin
unsafe-url
Specifies which referrer information to send with link
rel alternate
author
bookmark
external
help
license
next
nofollow
noreferrer
noopener
prev
search
tag
Specifies relationship between current document and linked document
target _blank
_parent
_self
_top
Specifies where to open linked document
type media_type Specifies media type of linked document

 

For your Information:-

 

By default, links will appear as follows in all browsers:

  • An unvisited link is underlined and blue
  • A visited link is underlined and purple
  • An active link is underlined and red

 

Syntax:-

 

Its syntax is:- < a href="your_URL" >

Code Explanation

All Tutorials related to HTML Tags List

All Sections related to HTML