Shaun McCance
shaunm@gnome.org 2008-2009
Erstellen Sie einen einfachen Absatz im Text.

# Absätze

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

      mal_inline
    }

Das grundlegende Blockelement in Mallard ist das `p`-Element. Das `p`-Element erzeugt in der formatierten Ausgabe einen Absatz.

# Anmerkungen

Das `p`-Element kann eine Mischung aus Text und weiteren allgemeinen eingebetteten Elementen enthalten.

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.

# Beispiele

So erstellen Sie einen einfachen Absatz:

<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>

Das grundlegende Blockelement in Mallard ist das `p`-Element. Das `p`-Element erzeugt in der formatierten Ausgabe einen Absatz.

# 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.

# Vergleich zu 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.