Version//IETF//DTD HTML 2.0 Strict//EN
ElementA
Purposeanchor for hypertext link
DescriptionA is the element used to create hypertext links. It is one of the most popularly-used elements. You can create a hypertext link from one document to another by using the href attribute. Note that A cannot contain another A.
Start tagRequired <A>
Attributes
NameTypeDefaultComment
HREF CDATA #IMPLIEDaddress of link destination
METHODS NAMES #IMPLIEDoperations on destination (advisory)
NAME CDATA #IMPLIEDname of this anchor
REL NAMES #IMPLIEDrelationship to destination
REV NAMES #IMPLIEDrelationship of destination to this
SDAPREF CDATA #FIXED "<Anchor: #AttList>"generated text prefix; in support of transformation to the International Committee for Accessible Document Design DTD for usable access to structured information by print-impaired individuals
TITLE CDATA #IMPLIEDtitle of destination (advisory)
URN CDATA #IMPLIEDuniversal resource name permanent address of destination; a URL is a URN
Content( #PCDATA | A | IMG | BR | EM | STRONG | CODE | SAMP | KBD | VAR | CITE | TT | B | I #PCDATA | A | IMG | BR )* -( A )
End tagRequired </A>
Referenced in A ADDRESS B CITE CODE DD DT EM H1 H2 H3 H4 H5 H6 I KBD LI P PRE SAMP STRONG TT VAR
Example
SourceAppearance
Link to another document:
<A Href="http://www.w3.org/">W3C</A>

<P>Title attribute set:
<A Href="http://www.w3.org/" Title="The World Wide Web Consortium">W3C</A>

<P>An image in the "hotspot":
<A Href="http://www.december.com/html/"><IMG Src = "http://www.december.com/html/images/icon.gif" Alt="The HTML Station" Align="center"></A>

<P>Naming an anchor:
<A Href="http://www.w3.org/" Name="reference-to-w3c">W3C</A>

<P>Link to named anchor in this document:
Learn about it <A Href="#reference-to-w3c">at the W3C</A>

<P>Link to a named anchor in another document:
You can learn about <A Href = "http://www.december.com/john/faq.html#lastname"> my last name on my FAQ</A>.
Link to another document: W3C

Title attribute set: W3C

An image in the "hotspot": The HTML Station

Naming an anchor: W3C

Link to named anchor in this document: Learn about it at the W3C

Link to a named anchor in another document: You can learn about my last name on my FAQ.

Save this page to any social bookmarking site! Share · Search · Market · Directory
2015-11-01 · John December · Contact · Terms of Use © December Communications, Inc.