<refentry id="anchor.element">
<?dbhtml filename="anchor.html"?>
<refentryinfo>
<pubdate>$Date$</pubdate>
<releaseinfo>$Revision$</releaseinfo>
</refentryinfo>

<refmeta>
<indexterm><primary>elements</primary>
<secondary>anchor</secondary></indexterm>
<refentrytitle>anchor</refentrytitle>
<refmiscinfo>Element</refmiscinfo>
</refmeta>
<refnamediv>
<refname>anchor</refname>
<refpurpose>&anchor.purpose;</refpurpose>
</refnamediv>

&anchor.synopsis.gen;
<refsect1 condition='ref.description'><title>Description</title>

<para>
An anchor identifies a single spot in the content.  This may serve as
the target for a cross reference, for example, from a
<sgmltag>Link</sgmltag>.  The <sgmltag class='element'>Anchor</sgmltag> element may occur almost anywhere.
</para>

<para>
<sgmltag class='element'>Anchor</sgmltag> has the <sgmltag
class='attribute'>Role</sgmltag> attribute and all of the <link
linkend="common.attributes">common attributes</link> except <sgmltag
class='attribute'>Lang</sgmltag>.
</para>

<refsect2><title>Processing expectations</title>
<para>
<sgmltag class='element'>Anchor</sgmltag> has no content and generally
produces no output.  It is a link target.
</para>
</refsect2>


&anchor.parents.gen;
</refsect1>
<refsect1 condition='ref.elem.attrdesc'><title>Attributes</title>
<variablelist>
<varlistentry><term>pagenum</term>
<listitem>
<para>
<sgmltag class="attribute">PageNum</sgmltag> 
indicates the page on which the anchor occurs in some printed version
of the document.
</para>
<para>
The <sgmltag class="attribute">PageNum</sgmltag> attribute
does not influence the pagination or page numbering of an &SGML;
application processing the document; it is informative, not
declarative.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 condition='ref.elem.seealso'><title>See Also</title>
&anchor.seealso.gen;
</refsect1>
<refsect1><title>Examples</title>

<informalexample role="example-source">
<programlisting>&anchor.example.1.txt;</programlisting>
</informalexample>

<anchor id="ex.os.anchor.1" role="HACK-ex.out.start"/>
&anchor.example.1.gen;
<anchor id="ex.oe.anchor.1" role="HACK-ex.out.end"/>

&anchor.example.seealso.gen;
</refsect1>
</refentry>

