link
link — A hypertext link.
Synopsis
- Zero or more of:
- text
- Bibliography inlines
![[-]](figs/web/nav/down.gif)
- Error inlines
![[-]](figs/web/nav/down.gif)
- Graphic inlines
![[-]](figs/web/nav/down.gif)
- GUI inlines
![[-]](figs/web/nav/down.gif)
- Indexing inlines
![[-]](figs/web/nav/down.gif)
- Keyboard inlines
![[-]](figs/web/nav/down.gif)
- Linking inlines
![[-]](figs/web/nav/down.gif)
- Markup inlines
![[-]](figs/web/nav/down.gif)
- Math inlines
![[-]](figs/web/nav/down.gif)
- Object-oriented programming inlines
![[-]](figs/web/nav/down.gif)
- Operating system inlines
![[-]](figs/web/nav/down.gif)
- Product inlines
![[-]](figs/web/nav/down.gif)
- Programming inlines
![[-]](figs/web/nav/down.gif)
- Publishing inlines
![[-]](figs/web/nav/down.gif)
abbrevacronymcorefdateemphasis(db.emphasis)firstterm(db._firstterm)firstterm(db.firstterm)footnotefootnoterefforeignphrase(db.foreignphrase)glossterm(db._glossterm)glossterm(db.glossterm)phrase(db.phrase)quote(db.quote)subscriptsuperscriptwordasword
- Technical inlines
![[-]](figs/web/nav/down.gif)
- Ubiquitous inlines
![[-]](figs/web/nav/down.gif)
abbrevacronymaltanchorannotationbibliorefcorefdateemphasis(db._emphasis)firstterm(db._firstterm)footnotefootnoterefforeignphrase(db._foreignphrase)glossterm(db._glossterm)indexterm(db.indexterm.endofrange)indexterm(db.indexterm.singular)indexterm(db.indexterm.startofrange)inlinemediaobjectlinkolinkphrase(db._phrase)quote(db._quote)remarksubscriptsuperscripttrademarkwordaswordxref
Attributes
Additional attributes:
- endterm (IDREF)
- xrefstyle
Required attributes are shown in bold.
Description
The link is a general-purpose hypertext
element. Usually, link surrounds the text that should
be made “hot” (unlike xref which must generate the
text), but the endterm attribute
can be used to copy text from another element.
The link can have either a
linkend attribute
or an xlink:href attribute. If it has an xlink:href attribute,
link is the equivalent of an HTML
anchor (<html:a href="...">) for
cross-reference with a Uniform Resource Identifier
(URI).
Processing expectations with linkend
Formatted inline.
If the link element has content, then that
content is processed for output as the “hot” text. If the
link element has content and an endterm attribute, then the content is
used and the endterm is ignored.
If the link element has an endterm attribute and no content, then the
content of the element pointed to by endterm should be repeated at the location
of the link and used as the “hot” text.
Processing expectations with xlink:href
Formatted inline.
When rendered online, it is natural to make the content of the
link element an active link. When rendered in print
media, the URI might be ignored, printed after the
text of the link, or printed as a footnote.
When the content of the link element is
empty, the content of the xlink:href attribute should be rendered as
the text of the link.
Attributes
- endterm
Points to the element whose content is to be used as the text of the link
- xrefstyle
Specifies a keyword or keywords identifying additional style information
Examples
<article xmlns='http://docbook.org/ns/docbook'>
<title>Example link</title>
<section>
<title>Examples of <tag>link</tag></title>
<para>
In this sentence <link linkend='nextsect'>this</link>
word is hot and points to the following section.
</para>
<section xml:id='nextsect'>
<title xml:id='nextsect.title'>A Subsection</title>
<para>
This section only exists to be the target of a couple
of links.
</para>
</section>
</section>
</article>




![[+]](figs/web/nav/right.gif)