O'Reilly logo

DocBook 5: The Definitive Guide by Richard L. Hamilton, Norman Walsh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

anchor — A spot in the document

Synopsis

anchor ::= empty

Attribute synopsis

Common attributes (ID required).

Description

An anchor identifies a single spot in the content. This may serve as the target for a cross-reference, for example, from a link. The anchor element may occur almost anywhere.

Processing expectations

An anchor has no content and generally produces no output. It is a link target.

See Also

link, olink, xref

Examples

<article xmlns='http://docbook.org/ns/docbook'>
<title>Example anchor</title>

<para>The anchor element<anchor xml:id="example.anchor.1"/> is empty and contributes
nothing to the flow of the content in which it occurs.  It is only useful
as a target.
</para>

</article>

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required