Name
<a> — NN: 2, 3, 4 • MSIE: 2, 3, 4, 5 • HTML 4 • WebTV • Opera3
Synopsis
<a>...</a>
Defines an anchor within the document. An anchor is used to link to another document. It can also serve to label a fragment of a document (also called a named anchor), which is used as a reference for linking to a specific point in an HTML document.
Attributes
href=urlSpecifies the URL of the target destination.
method=valueSpecifies a list of names, each representing a particular document-processing method, usually an application name. It is browser-dependent and is rarely used in practice.
name=textIdentifies and names a portion of the document (called a “fragment”). The fragment can be referenced within a URL, preceded by the hash (#) symbol. See the following Section .
rel=next|prev|head|toc|parent|child|index|glossaryNot supported by Navigator or Opera. Establishes a relationship between the current document and the target document.
rev=relationshipNot supported by Navigator or Opera. Specifies the relationship from the target back to the source (the opposite of the
relattribute). The relationship options are the same as for therelattribute.title=textSpecifies a title for the target document.
target=name|_blank|_self|_parent|_topNot supported by WebTV or Internet Explorer 2.0 and earlier. Specifies the name of the window or frame in which the target document should be displayed. The standard target names work as follows:
_blankOpens a new, unnamed browser window.
_selfLoads the ...
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