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=
url
Specifies the URL of the target destination.
method=
value
Specifies 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=
text
Identifies 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|glossary
Not supported by Navigator or Opera. Establishes a relationship between the current document and the target document.
rev=
relationship
Not supported by Navigator or Opera. Specifies the relationship from the target back to the source (the opposite of the
rel
attribute). The relationship options are the same as for therel
attribute.title=
text
Specifies a title for the target document.
target=
name
|_blank|_self|_parent|_top
Not 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:
_blank
Opens a new, unnamed browser window.
_self
Loads the ...
Get HTML Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.