3.2 NS IE TV

<A>...</A>

This tag is what the hyperlinked structure of the World Wide Web is based on. It is used in two ways:
1. Create a hyperlink
By using the HREF attribute you create an hyperlink, this is a link which points to another document, somewhere on the internet. When a user selects this link, the browser will load the file that the link refers to.
2. Create an anchor in a document
When you use the NAME attribute you create an anchor, this is a position inside a document which can be used as the target for an hyperlink.

CLASS
NS4 IE
Generic description of the CLASS attribute

HREF
3.2 NS IE TV
Create a link to an URL (see RFC 1738 out=> for a complete description of the syntax of an URL).
An URL consists of the following elements :

<protocol>://<host>:<portnumber><path><anchor>?<parameters>

protocol
The protocol you want to use. Some well-known protocols are :
Protocol Usage
http Hypertext Transfer Protocol, for World Wide Web pages
ftp File Transfer Protocol, downloading and uploading files
news Reading and posting messages to newsgroups
gopherMenu like information system, used before the WWW got popular.
telnetRemote login on another computer
host
The host computer which has to handle the request. This can be a four-number internet address, or the name of the computer.
portnumber
On a computer you can set up more than one server (program) which handle the same protocol. Each server is assigned its own portnumber to which it listens. Each protocol has a default portnumber, and most programs add this if the address does not contain a portnumber. For example the default portnumber for http is 80.
path
The directory on the computer where the information is stored.
anchor
For an HTTP address you can create anchors in a page, which lets you jump to a specific position in that page. Anchors are created with the NAME attribute of the A tag.
parameters
If the address links to a program you can supply information to this program with this parameters. What parameters you can use depends completely on the program.

ID
NS4 TV
Generic description of the ID attribute

NAME
3.2 NS IE TV
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
TV
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
NS IE
Specifies JavaScript code to execute when a user clicks the image or link text.

OnMouseOut
NS
Specifies JavaScript code to execute when a user moves the mouse pointer out of the image or link text.

OnMouseOver
NS IE
Specifies JavaScript code to execute when a user moves the mouse pointer over the image or link text.

REL
3.2
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:
Value Description
NEXT The link points to the next page in a sequence of pages.
PARENT The current page is the parent of the page where the link points to.
PREVIOUS The link points to the previous document.
SAME The author of the linked document is the same as the current document. This value is the default value if this attribute is not specified.


REV
3.2
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
TV
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
NS4 IE
Generic description of the STYLE attribute

TARGET
NS IE
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
These names all begin with the underscore character. Any targeted window name beginning with underscore which is not one of these names, will be ignored.

Value Description
_blank This target will cause the link to always be loaded in a new blank window. This window is not named.
_self This target causes the link to always load in the same window the anchor was clicked in. This is useful for overriding a globally assigned BASE target.
_parent This target makes the link load in the immediate FRAMESET parent of this document. This defaults to acting like _self if the document has no parent.
_top This target makes the link load in the full body of the window. This defaults to acting like _self if the document is already at the top. It is useful for breaking out of an arbitrarily deep FRAME nesting.


TITLE
3.2
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.


Statistics Copyright © 1996, 1997 Rob Schlüter
Last updated 1997/08/26
Email: schluter@knoware.nl