- The
a
element (or anchor element), with itshref
attribute, creates a hyperlink to- webpages
- files
- email addresses
- locations in the same page
- anything else a URL can address
-
If the a element has an
href
attribute, then it represents a hyperlink (a hypertext anchor). -
If the a element has no
href
attribute, then the element represents a placeholder for where a link might otherwise have been placed, if it had been relevant -
The
target
,rel
,media
,hreflang
, andtype
attributes must be omitted if thehref
attribute is not present