anchor

anchor — A spot in the document.

Synopsis

  • empty

Attributes

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.

Parents [+]

This element occurs in 242 elements.

See Also

link, olink, xref

Examples

  1 <article xmlns='http://docbook.org/ns/docbook'>
  2 <title>Example anchor</title>
    
  4 <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
  6 as a target.
    </para>
  8 
    </article>

The anchor element is empty and contributes nothing to the flow of the content in which it occurs. It is only useful as a target.

Last revised by Norman Walsh on 6 Jun 2011 (git hash: 6ffcc7640bbc5f852a318e452c9f210f03292cb9)