The
p
element represents a paragraph of text consisting of one or several sentences.
The
class
attribute together with a CSS stylesheet should be used to retain any formatting information specific to a paragraph, such
as first line indenting.
When print layout has to be strictly followed in converting a document to electronic format, paragraphs may be split by other
elements such as full page images. Refer to the
continuation
attribute for more information on how to indicate that two
p
elements actually constitute a single whole.
Usage details available in the Usage Details section.
Usage Example
<p>Independently of these indications, the abundance and variety of the osseous
remains of extinct Mammalia in South America … .</p>
Allowed parents
address,
annotation,
block,
body,
caption,
code,
description,
item,
d:longdesc,
object,
quote,
section,
d:simplifiedLanguageDescription,
d:summary,
td,
th and
d:tour
Allowed children
This element may contain text.
This element may contain the following children: abbr,
address,
annoref,
annotation,
citation,
code,
definition,
emph (text variant),
emph (phrase variant),
expansion,
ln,
name,
num,
object (text variant),
object (phrase variant),
quote,
ref,
its:ruby,
s,
span (text variant),
span (phrase variant),
sub,
sup,
term,
time and
w
Content model and additional requirements
optional attributes:
@about,
@by,
@class,
@content,
@continuation,
@datatype,
@desc,
@its:dir,
@its:translate,
@property,
@rel,
@resource,
@rev,
@role,
@typeof,
@xml:base,
@xml:id,
@xml:lang and
@xml:space
one or more of
a choice of either one of the 27 elements:
abbr,
address,
annoref,
annotation,
citation,
code,
definition,
emph,
emph,
expansion,
its:ruby,
ln,
name,
num,
object,
object,
quote,
ref,
s,
span,
span,
sub,
sup,
term,
time,
w or
w
or text
end of choice
Note that in addition to restrictions presented in the content model above,
use of this element must also respect the following requirement:
- The
p
element must neither be empty nor contain only whitespace.
Such requirements take precedence over any conflicting statements in the
content model or in the lists above of allowed children and parents.
Namespace
http://www.daisy.org/ns/z3998/authoring/
Usage Details
Associating groups of paragraphs
It is sometimes necessary to provide information about paragraphs that are associated with each other. In a republishing context
for example, paragraph association may have been expressed in the print source using some indentation convention, and for
certain output formats, this association must be preserved.
The Z39.98 Structural Semantics Vocabulary contains the
pgroup
property, which is used to associate a group of paragraphs:
<block role="pgroup">
<p>…</p>
<p>…</p>
</block>