- The
aelement (or anchor element), with itshrefattribute, 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
hrefattribute, then it represents a hyperlink (a hypertext anchor). -
If the a element has no
hrefattribute, 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, andtypeattributes must be omitted if thehrefattribute is not present