Link Tags in HTML


Links - Hyperlinking is fundamental to HTML. These elements enable you to link to other documents, other locations within a document or external files.

TagAttributeDescription
Acore, eventsUsed to define links and anchors
 charset="..."Character encoding of the resource
 name="..."Defines an anchor
 href="..."The URL of the linked resource
 target="..."Determines where the resource will be displayed (, "self" (a new window), "blank" (a blank window), "parent" (the parent window of the current window), "top" (the top-most window)
 rel="..."Forward link types
 rev="..."Reverse link types
 accesskey="..."Assigns a hot-key to this element. Thus the link would be activated by pressing a specified key
 shape="..."Define client-side image maps using defined shapes (default, rect, circle, poly)
 coords="..."Sets the size of the shape using pixel or percentage lengths
 tabindex="..."Sets the tabbing order between elements with a tabindex
BASEAll other URLs in the document are resolved against this location
 href="..."The URL of the linked resource
 target="..."Determines where the resource will be displayed (, "self" (a new window), "blank" (a blank window), "parent" (the parent window of the current window), "top" (the top-most window)
LINKcore, eventsDefines the relationship between a link and a resource. The LINK tag must be located in the document HEAD tag
 href="..."The URL of the resource
 rel="..."The forward link types
 rev="..."The reverse link types
 type="..."The internet content type
 media="..."Defines the destination medium (screen, print, projection, braille, speech, all)
 target="..."Determines where the resource will be displayed (, "self" (a new window), "blank" (a blank window), "parent" (the parent window of the current window), "top" (the top-most window)