<docDefaults> (Document Default Paragraph and Run Properties)

This element specifies the set of default paragraph and run properties which shall be applied to every paragraph and run in the current WordprocessingML document. These properties are applied first in the style hierarchy; therefore they are superseded by any further conflicting formatting, but apply if no further formatting is present.

If this element is omitted, then the document defaults shall be application-defined by the hosting application.

example:
<w:docDefaults>
  <w:pPrDefault>
    <w:pPr>
      <w:jc w:val="center"/>
    </w:pPr>
  </w:pPrDefault>
  <w:rPrDefault>
    <w:rPr>
      <w:b/>
    </w::rPr>
  </w:rPrDefault>
</w:docDefaults>

The child elements of <docDefaults> specify a default paragraph property of centered text and a default run property of bold text. Applying this formatting to the following fragment from the main document part of the same document:

<w:body>
  <w:p>
    <w:r>
      <w:t>Hello world!</w:t>
    </w:r>
  </w:p>
</w:body>

This paragraph contains no formatting properties, therefore, using the style hierarchy the document default paragraph and run properties are applied as specified within the <docDefaults> element and the resulting paragraph is centered as specified in the <jc> element (§2.3.1.13) as well as bold as specified via the <b> element (§2.3.2.1). ]

Parent Elements

<styles>2.7.3.18)

Child Elements

Subclause

<pPrDefault> (Default Paragraph Properties)

§2.7.4.3

<rPrDefault> (Default Run Properties)

§2.7.4.5

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_DocDefaults">
	<sequence>
	<element name="rPrDefault" type="CT_RPrDefault" minOccurs="0"/>
	<element name="pPrDefault" type="CT_PPrDefault" minOccurs="0"/>
	</sequence>
</complexType>