Anchor tag attributes

wp nav menu0
<a href="https://w3webpixel.com">Visit w3webpixel.com!</a>

Attributes

AttributeValueDescription
downloadfilenameSpecifies that the target will be downloaded when a user clicks on the hyperlink
hrefURLSpecifies the URL of the page the link goes to
hreflanglanguage_codeSpecifies the language of the linked document
mediamedia_querySpecifies what media/device the linked document is optimized for
pinglist_of_URLsSpecifies a space-separated list of URLs to which, when the link is followed, post requests with the body ping will be sent by the browser (in the background). Typically used for tracking.
referrerpolicyno-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 the link
relalternate
author
bookmark
external
help
license
next
nofollow
noreferrer
noopener
prev
search
tag
Specifies the relationship between the current document and the linked document
target_blank
_parent
_self
_top
Specifies where to open the linked document
typemedia_typeSpecifies the media type of the linked document

For more info visit w3schools.com.

Leave a Reply