Name
<a> — NN 2, 3, 4, 6 MSIE 2, 3, 4, 5, 5.5, 6 HTML 4.01 WebTV Opera5
Synopsis
<a>...</a>
Defines an anchor within the document. An anchor is used to link to another document or web resource. It can also serve to label a fragment within a document (also called a named anchor ), which serves as a destination anchor for linking to a specific point in an HTML document.
Attributes
The attributes labeled “HTML 4.01” are new to the HTML 4.01 specification and are generally supported only by Internet Explorer 5.5 and higher and Netscape 6.
-
accesskey=character HTML 4.01. Assigns an access key (shortcut key command) to the link. Access keys are also used for form fields. The value is a single character. Users may access the element by hitting Alt-
key(PC) or Ctrl-key(Mac).
-
charset=charset HTML 4.01. Specifies the character encoding of the target document. See Chapter 7 for information on character sets.
-
coords=x,y coordinates HTML 4.01. Specifies the x,y coordinates for a clickable area in an imagemap. HTML 4.0 proposes that client-side imagemaps be replaced by an
<object>tag containing the image and a set of anchor tags defining the “hot” areas (with shapes and coordinate attributes). This system has not yet been implemented by browsers.
-
href=url Specifies the URL of the destination HTML document or web resource (such as an image, audio, PDF, or other media file).
-
id=text Gives the link a unique name (similar to the
nameattribute) so it can be referenced from a link, script, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access