Shaun McCance
shaunm@gnome.org 2008-2009
Create a simple paragraph of text.

# Paragraphs

    mal_block_p = element p {
      attribute style { xsd:NMTOKENS } ?,
      attribute * - (mal:* | local:*) { text } *,

      mal_inline
    }

The most basic block-level element in Mallard is the `p` element. The `p` element creates a paragraph in the formatted output.

# Notas

The `p` element can contain a mixture of text and any general inline elements.

The `p` element can occur in any general block context, including inside pages, sections, and certain block elements.

The `style` attribute takes a space-separated list of style hints. Processing tools should adjust their behavior according to those style hints they understand.

The `p` element can have attributes from external namespaces. See for more information on external-namespace attributes.

# Ejemplos

Create a simple paragraph:

<p>The most basic block-level element in Mallard is the <code>p</code> element. The <code>p</code> element creates a paragraph in the formatted output.</p>

The most basic block-level element in Mallard is the `p` element. The `p` element creates a paragraph in the formatted output.

# Processing Expectations

Paragraphs are displayed as block elements, with their child elements interpreted as inline elements. In on-screen media, paragraphs generally have padding above and below them to separate them from the surrounding block content. In print media, the first line of each paragraph has traditionally been indented.

# Comparison to DocBook

The `p` element in Mallard appears to be equivalent to to the `para` element in DocBook. While both elements create a paragraph in the formatted output, the `p` element in Mallard is actually much more restrictive, as it does not permit nested block content. In this regard, it is actaully similar to the `simpara` element in DocBook.