![]() | ![]() |
This tag is what the hyperlinked structure of the World Wide Web is based on.
It is used in two ways:
|
![]() | |||||||||||||
CLASS![]() ![]() |
Generic description of the CLASS attribute | ||||||||||||
HREF![]() ![]() ![]() ![]() |
Create a link to an URL (see
RFC 1738
![]() An URL consists of the following elements :
| ||||||||||||
ID![]() ![]() |
Generic description of the ID attribute | ||||||||||||
NAME![]() ![]() ![]() ![]() |
Define an position inside a document which can be used as an URL in the HREF
attribute. This makes it possible to jump to a specific place in the target
document. To use this position add #, followed by the name to the URL in
the link. This attribute can be used to link to another position in the current
document, just use the name of the anchor as the HREF. This can be useful to
create an table of contents in the beginning of the document, in which you link
to the actual sections with text.
Each name inside a document should be unique. | ||||||||||||
NOCOLOR![]() |
This prehibits the text of the link to be drawn using the color which was set with the LINK attribute of the BODY tag. | ||||||||||||
ONCLICK![]() ![]() |
Specifies JavaScript code to execute when a user clicks the image or link text. | ||||||||||||
OnMouseOut![]() |
Specifies JavaScript code to execute when a user moves the mouse pointer out of the image or link text. | ||||||||||||
OnMouseOver![]() ![]() |
Specifies JavaScript code to execute when a user moves the mouse pointer over the image or link text. | ||||||||||||
REL![]() |
The forward relationship also known as the "link type". It can be
used to determine how to deal with the linked resource when printing out a
collection of linked resources.
Known values are:
| ||||||||||||
REV![]() |
This defines a reverse relationship. A link from document A to document B with REV=relation expresses the same relationship as a link from B to A with REL=relation. REV=made is sometimes used to identify the document author, either the author's email address with a mailto URL, or a link to the author's home page. | ||||||||||||
SELECTED![]() |
Use the selected attribute to indicate that this anchor should be initially selected with the yellow Highlight rectangle. If two anchors in one web page have the selected attribute, the first one in the HTML definition will be selected. This corresponds to the anchor closest to the top-left of the page. The selected anchor may not appear in the first screenful of the page. The WebTV interface won't scroll to that anchor in order to make it appear. Instead, the selection will appear when the viewer scrolls to that part of the page. | ||||||||||||
STYLE![]() ![]() |
Generic description of the STYLE attribute | ||||||||||||
TARGET![]() ![]() |
The TARGET attribute forces the load of that link into a targeted window. It
is only used in combination with the HREF attribute.
The value supplied with the attribute must be the same as the name of the
window, and is case-sensitive. You can give a window a name with the
FRAME tag. If a window with the supplied target name
does not exist then a new window will be created with that name. If you do not specify a target window the current window will be used, or the target specified with the BASE tag.
Magic TARGET names
| ||||||||||||
TITLE![]() |
An advisory title for the linked resource. |
![]() | ![]() |
Source: | Here's a link to <A HREF=#top onmouseout="alert('Well, perhaps not')" onclick="alert('The link will be activated')"> the top of the page</A>. |
Result: | Here's a link to the top of the page. |
Source: | With <A HREF=TAG_STYLE.html STYLE="color:green; font-size:20pt;">style sheets</A> you can change the look of a link. |
Result: | With style sheets you can change the look of a link. |