---
layout: single
elementName: a
---
Creates a link to a URL: a web page, a section within a page, an email address... Also called the
Example:
Copy
Defines the target of the link. You can pass an absolute URL. You can pass a URL relative to the root domain. You can target an element within the same page. Here, we target the element You can use the Defines in which tab or window the clicked link will show up. Opens in a new browsing context, which is usually a new tab. Opens in the current tab. Opens in the parent browsing context, or Opens in the top browsing context, or Defines how the link target relates to the current web page. The target is not related. Used for external websites usually.
#
a
anchor element, where the a comes from.
href
"http://htmlreference.io"
"/element/div"
"#footer"
<div id="footer">
"mailto:alex@smith.com"
mailto protocol. Clicking the link will open the user's email client.
target
"_blank"
"_self"
"_parent"
_self is there is none.
"_top"
_self is there is none.
rel
"nofollow"