This tag creates an anchor point (href) or target point (name or id) for hyperlinking within a book. By default, links are presented underlined and displayed in colored text, but you can override this rendering using CSS properties. External links are displayed as non-underlined text, and are not functional.
The <a>
tag always comes in pairs, one with a name
attribute and one with the corresponding href
attribute and path. See the name
and href
attributes for details.
class, href, id, lang, name, rel (ignored), rev (ignored), style, title (ignored)
<head>
<style>
.red {color:red; text-decoration: none}
</style>
</head>
<body>
<h3>Anchor</h3>
<a name="anchor"></a>
<p>This is an <a href="#target">anchor point</a> that links to a target point elsewhere on the page; the linking text is blue and underlined by default.</p>
<p>This sentence contains the <a name="target">target point.</a> The anchor tag does not affect how this text is displayed.</p>
<p>This <a class="red" href="#target">link</a> has been altered by the use of CSS changes to color and text-decoration properties.</p>
</body>
© 2000 Microsoft Corporation. All rights reserved. Terms of use.