Link — an HTML hyperlink
HTML links are created with
<a> tags are used in the body of a
document to create hyperlinks.
<area> tags are a rarely used
feature for creating “image maps.”
<link> tags are used in the
<head> of a document to refer to
external resources such as stylesheets and icons. The
<area> elements have the same
<link> elements have a somewhat
types of links are documented together on this page.
When a Link object that represents an
<a> element is used as a string, it
returns the value of its
In addition to the properties listed here, a Link object also
has properties that reflect the underlying HTML attributes:
type. Note that the URL decomposition
properties (such as
pathname) that return portions of
href are only defined
<area> elements, not for
<link> elements, and that the
relList properties are only defined for
<link> elements that refer
<link>elements that refer to stylesheets, this property controls whether the stylesheet is applied to the document or not.
Specifies the fragment identifier of
href, including the leading hash (#) mark—for example, “#results”.
Specifies the hostname and port portions of