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>

Get DocBook 5: The Definitive Guide 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.