Reference /Pin to ProfileBookmark

The <a> tag, or Anchor element, defines a hyperlink to any URL on the web, including web pages, files, email addresses, telephone numbers, anchors on the same page – anything that a URL can address.

Syntax

The most important attribute is href, which provides the address to which the element is linked.

<a href="https://webdeveloper.com/">Visit WebDeveloper.com</a>

Attributes

download
Specifies that the targeted URL will be downloaded to the users computer. Can be used with or without a value

href
Provides the address to which the element is linked.

hreflang
Identifies the language that the linked URL is in.

media
Identifies the media or device that the linked URL is optimized for.

ping
Sends post requests with the body ping to a comma separated list of URLs when the link is clicked.

referrerpolicy
Depending on the specified value, determines how much of the referrer to send.

rel
Depending on the specified value, specifies the relationship between the linked item and the current URL.

target
Determines where the linked URL is opened (current window, new window, etc.)

type
Provides the linked URL’s format in Mime-type.

Browser Compatibilty

Demos

User-submitted codepen.io examples of <a>

@Nibrock

See the Pen on CodePen.

Want to Contribute?

Submit a codepen.io link that demonstrates <a>:

to submit a demo.
HTML
×

Success!

Help @reference spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with Github
about: ({
version: 0.1.7 BETA 2.4,
whats_new: article editor v2,
up_next: tip code demos,
coming_soon: embeddable tipping,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh

version: 0.1.5,
notes: added pins + new badge

version: 0.1.4,
notes: home refresh + tools
)...
recent_tips: (
tipper: @JohnDavis,
amount: 250 SATS,
source: article

tipper: @Megan0910,
amount: 1000 SATS,
source: article

tipper: @JohnDavis,
amount: 250 SATS,
source: article
)...