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
HTML Comment Tag
DOCTYPE in HTML
HTML a Tag
HTML abbr Tag
HTML acronym Tag
HTML address Tag
HTML article Tag
HTML aside Tag
HTML audio Tag
HTML b Tag
HTML base Tag
HTML bdi Tag
HTML bdo Tag
HTML blockquote Tag
HTML body Tag
HTML br Tag
HTML button Tag
HTML canvas Tag
HTML caption Tag
HTML cite Tag
HTML code Tag
HTML col Tag
HTML colgroup Tag
HTML data Tag
HTML datalist Tag
HTML dd Tag
HTML del Tag
HTML details Tag
HTML dfn Tag
HTML dialog Tag
HTML div Tag
HTML dl Tag
HTML dt Tag
HTML em Tag
HTML embed Tag
HTML fieldset Tag
HTML figcaption Tag
HTML figure Tag
HTML footer Tag
HTML form Tag
HTML h1 - h6 Tags
HTML head tag
HTML header Tag
HTML hr Tag
HTML html Tag
HTML i Tag
HTML iframe Tag
HTML img Tag
HTML input Tag
HTML ins Tag
HTML kbd Tag
HTML label Tag
HTML legend Tag
HTML li Tag
HTML link Tag
HTML main Tag
HTML mark Tag
HTML meta Tag
HTML meter Tag
HTML nav Tag
HTML noscript Tag
HTML object Tag
HTML ol Tag
HTML optgroup Tag
HTML option Tag
HTML output Tag
HTML p Tag
HTML param Tag
HTML picture Tag
HTML pre Tag
HTML progress Tag
HTML q Tag
HTML ruby Tag
HTML s Tag
HTML samp Tag
HTML script Tag
HTML section Tag
HTML select Tag
HTML small Tag
HTML source Tag
HTML span Tag
HTML strong Tag
HTML style Tag
HTML sub Tag
HTML summary Tag
HTML sup Tag
HTML svg Tag
HTML table Tag
HTML tbody Tag
HTML td Tag
HTML template Tag
HTML textarea Tag
HTML tfoot Tag
HTML th Tag
HTML thead Tag
HTML time Tag
HTML title Tag
HTML tr Tag
HTML track Tag
HTML u Tag
HTML ul Tag
HTML var Tag
HTML video Tag
HTML wbr Tag