title
title — The text of the title of a section of a document or of a formal block-level element.
Synopsis
title ::=
- Zero or more of:
- text
html:button
html:fieldset
html:input
html:label
html:select
html:textarea
- Bibliography inlines
- Computer-output inlines
- Graphic inlines
- Linking inlines
- Markup inlines
- Operating system inlines
- Product inlines
- Publishing inlines
- Technical inlines
- Ubiquitous inlines
- User-input inlines
Attributes
Description
The title
element is widely
used in DocBook. It identifies the titles of documents and parts of
documents, and is the required caption on formal objects. It is also
allowed as an optional title or caption on many additional block
elements.
Titles are so common, and so often the only “info” elements
associated with their parent, that they (title
,
subtitle
, and titleabbrev
) are allowed outside
the info
element. This is a tradeoff favoring author
convenience over a small amount of additional complexity in
processing. However, the title elements must either all be outside of
the info
wrapper or all inside, you cannot have some
outside and some inside.
Processing expectations
Formatted as a displayed block. Titles are often repeated in several locations: for example, at the location where the object occurs, in the table of contents, and in running headers and footers.
DocBook does not offer any mechanism for indicating where a line break should occur in long titles. Titles are often repeated and no single line break is likely to be correct in all of the places where a title is used. Instead, you will have to rely on your processing system to provide a mechanism, such as a processing instruction, for identifying the location of forced line breaks.
Parents
These elements contain title
: abstract
, appendix
, bibliodiv
, bibliography
, bibliomixed
, bibliomset
, blockquote
, example
, figure
, head
, info
(db.info), info
(db.titleonly.info), info
(db.titleonlyreq.info), info
(db.titlereq.info), itemizedlist
, legalnotice
, note
, orderedlist
, personblurb
, revhistory
, section
, sidebar
, table
(db.cals.table), variablelist
.
Children
The following elements occur in title
: text, abbrev
, acronym
, author
, citetitle
, command
, computeroutput
, editor
, email
, emphasis
, filename
, footnote
, footnoteref
, html:button
, html:fieldset
, html:input
, html:label
, html:select
, html:textarea
, inlinemediaobject
, link
(db.link), literal
, option
, orgname
, personname
, phrase
(db.phrase), quote
, rddl:resource
, replaceable
, subscript
, superscript
, systemitem
, trademark
, userinput
, xref
.
See Also
Related elements: subtitle
, titleabbrev
.
Examples
1 |<article xmlns='http://docbook.org/ns/docbook'>
|<title>Example title</title>
||
<section>
5 |<title>A Top Level Section</title>
||
<para>Actual content.</para>
|</section>
|10 |
</article>