<a> tag is used for creating a hyperlink, which link one page to another.
☛
<a> tag need one or more attribute for its working otherwise it's a placeholder for a hyperlink.
<a> Tag Support Following Attributes :-
Attribute
Value
Description
charset
char_encoding
Defines the character encoding of the linked document.
coords
coordinates
Defines the coordinates appropriate to the shape attribute to define a region of an image for image maps.
download
filename
This downloads the target document when user clicks on the hyperlink, instead open.
href
URL
Defines the URL of a page or the name of the anchor that the link goes to.
hreflang
language_code
Defines the language of the linked document
media
media_query
Defines what media the linked document is optimized for
name
section_name
Marks an area of the page or the area of the anchor that a link jumps to.
rel
author license nofollow noreferrer prefetch search tag alternate designates stylesheet start next prev contents index glossary copyright chapter section subsection appendix help bookmark
Defines the relationship between the current document and the destination URI.
rev
alternate designates stylesheet start next prev contents index glossary copyright chapter section subsection appendix help bookmark
Defines the relationship between the target URL and the current document.
shape
default rect rectangle circ circle poly polygon
Defines the shape of the image map
target
_blank _parent _self _top
Defines where to open the target URL.
_blank - the target URL will open in a new window
_self - the target URL will open in the same frame as it was clicked
_parent - the target URL will open in the parent frameset
_top - the target URL will open in the full body of the window
type
mime_type
Defines the media type of the linked document, MIME (Multipurpose Internet Mail Extensions)