Вебмастер
Санкт-Петербург
Частный вебмастер Услуги Контакты Справочная информация Статьи и публикации Полезные сервисы Букварь вебмастера
   Букварь вебмастера

Тег A


A

<A
ACCESSKEY=string
HREF=string
CLASS=string
DATAFLD=colname
DATASRC=#ID
ID=string
LANG=string
LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT
METHODS=string
NAME=string
REL=string
REV=string
STYLE=string
TARGET=string
event = script
>

Anchor elements designate the start or destination of a hypertext link. The Anchor element requires the HREF= or the NAME= attribute to be specified.

ACCESSKEY=
Specifies an accelerator for the element.
HREF=
Specifies the destination URL or anchor point.
CLASS=
Specifies the class of the tag being defined. This is most often used to associated a sub-classed style sheet with the tag.
DATAFLD=
The column name from the data source object that supplies the bound data.
DATASRC=
Indicates the ID of the data source object that supplies the data that is bound to this element.
ID=
An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid names to script with are any alphanumeric string that begins with a letter. Valid special characters include underbar "_".
LANG=
This specifies the language to use. The specifier is an ISO standard language abbreviation.
LANGUAGE=
Specifies the language that the current script is written in. JavaScript is the default for this attribute.
METHODS=
The METHODS attributes of anchors and links provide information about the functions that the user may perform on an object. These are more accurately given by the HTTP protocol when it is used, but it may, for similar reasons as for the TITLE= attribute, be useful to include the information in advance in the link. For example, the HTML user agent may chose a different rendering as a function of the methods allowed; for example, something that is searchable may get a different icon.
NAME=
Specifies the name of the control, bookmark, or applet.
REL=
The REL attribute gives the relationship(s) described by the hypertext link from the anchor to the target. The value is a comma-separated list of relationship values. Values and their semantics will be registered by the HTML registration authority. The default relationship if none other is given is void. The REL attribute is only used when the HREF= attribute is present.
REV=
The REV attribute is the same as the REL= attribute, but the semantics of the link type are in the reverse direction. A link from A to B with REL="X" expresses the same relationship as a link from B to A with REV="X". An anchor may have both REL and REV attributes.
STYLE=
Specifies an in-line style sheet for the tag.
TARGET=
Specifies the window or frame to target the contents at.
TITLE=
The Title attribute is used to provide advisory information.
event
Can be one or more of these events:

onblur onclick

ondblclick onfocus

onhelp onkeydown

onkeypress onkeyup

onmousedown onmousemove

onmouseout onmouseover

onmouseup onselectstart

Text and/or images may be within an anchor. To represent images that are anchors, a border in the visited or not visited color is displayed.

Both the start and end tags are required.

Example

 

<A HREF="http://www.microsoft.com">This is a link to Microsoft.</A>

<A HREF="home.htm">This is a link to a file called home.htm in the same

directory as this page.</A>

<A TARGET="viewer" HREF="sample.htm">Click here to load the link into

"viewer" window.</A>

Смотрите далее: ADDRESS »

  Теги HTML
ihc hosting