We will tackle the anchor tags. Anchor tags are used to link pages.
This is the basic anchor format:
<a href="http://where-do-you-want-to-go.com">Link Text</a>
Attributes
There are certain attributes that affect how a link works.
target
target is used to specify where the the HTML document will should load. Target names should be used to identify the the target. This attribute can be assigned by the attribute name.
| Target | Description |
| _blank | loads HTML document opens a new window |
| _parent | loads HTML document on the present frameset |
| _self | loads HTML document in the current window |
| _top | loads HTML document in main window and additionally removes all framesets present |
Title
title is the tag used to define a mouseover tooltip.
This sample of a link that has a title:
<a title="insert title here">HTML is very easy</a>
name
name is used to signify an anchor position in an HTML document.
This sample has a name attribute in:
<a name="what">HTML is very easy</a>
id
id is a unique identifier that distinguishes an element from all the rest in an HTML document
This sample has an id in it:
<a id="anchor-id">Easy, easy, easy</a>
Summary
| Attribute | Description |
| target | used to specify where the the HTML document will should load |
| title | used to define a mouseover tooltip |
| name | to signify an anchor position in an HTML document |
| id | a unique identifier that distinquishes an element from all the rest in an HTML document |
Trackbacks & Pingbacks 1
[...] The best place is to start from the beginning. HTML. [...]
Post a Comment