HTML HYPERLINK TAGS


Hyperlink tags

 

Hyperlink tags (also called Anchor tags) are used to link one document to another using hypertext (word or image) and are activated by clicking on a hypertext. Helps to navigate from one document to another. Hypertext links are typically colored and underlined and changes color once clicked to indicate an already visited link. When a pointing device (such as mouse) moves over the hypertext it changes shape. Hyperlinks can be used to navigate to a new document in the same / different window or can be used to navigate to a target location in the same document.

 

Tag

Function

<A>

(container tag)

(Attributes – 13)

Creates a hyperlink to another webpage or another location within the same webpage

 

Tag: <A>

Attribute

Description and values

ACCESSKEY

a shortcut key a reader can use to activate the hyperlink. Example: access key "C", shortcut key is ‘Alt+C’

CHARSET

Denotes what character encoding to use for the linked document.

DOWNLOAD

Specifies the target will be downloaded when a user clicks on the hyperlink.

HREF

Specifies the URL of the linked web page

HREFLANG

Specifies the language of the linked document

(value – language code)

MEDIA

Specifies what media/device the linked document is optimized for

NAME

Name of the anchor being set up

PING

Specifies a space_separated list of URLs to which, when the link is followed, post requests with the body ping will be sent by the browser (in the background). Typically used for tracking

REL

Nature of the forward link

REV

Nature of the reverse link

TABINDEX

Specifies the link's position in the document's tabbing order

TARGET

Specifies where to open / load the linked document (values: _blank | _parent | _self | _top | framename)

TYPE

Specifies the MIME type of the linked document

 

(REL / REV – specifies the relationship of current web page to forward / reverse linked page. Example values – Author | Bookmark | Copyright | External | Help | License | Glossary | Home)

1 comment:

Don't be a silent reader...
Leave your comments...

Anu