HTML Link

Links allow users to move seamlessly from one page to another, on any server anywhere in the world. A link has two ends called anchors and a direction. The link starts at the source anchor and points to the destination anchor, which may be any web resource (e.g. an image, an audio or video clip, an HTML document or an element within the document itself, etc.).

Link Syntax

Links are specified in HTML using the a tag

iCowboysMedia LLC

Target Attribute of Links

Target attribute tells the browser where to open linked document. There are four defined targets. Each target starts with an underscore(“_”): _blank, _parent, _self, _top.

Links can be displayed in different ways

/* unvisited link */
a:link { color: red;}
/* visited link */
a:visited { color: black;}
/* mouse over link */
a:hover { color: orange;}
/* selected link */
a:active {color: green;}