Wordprocessing Paragraphs
The paragraph is the main block-level container for content within an ooxml document. (Tables can also contain content at the same level as a paragraph.) The paragraph is specified with <w:p> element. The paragraph can contain rich formatting properties for the paragraph (contained within a <w:pPr>). The text within the paragraph is further contained within one or more runs (<w:r>). Paragraphs may also contain bookmarks, hyperlinks, fields, comments, etc.
Elements:
The <w:p> element can contain a number of elements, mostly related to tracking revisions and adding custom XML. The core elements are shown below.
Element | Description |
---|---|
bookmarkStart | Specifies the start of a bookmark within a document. See Bookmarks. Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.13.6.2.
|
bookmarkEnd | Specifies the end of a bookmark within a document. See Bookmarks. Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.13.6.1.
|
r | Specifies a run of content within the paragraph. See Text. Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.3.2.25.
|
pPr | Specifies a set of properties for the paragraph. See Paragraph Properties. Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.3.1.26.
|
fldSimple | Specifies a simple field. See Fields - Overview.
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.16.19.
|
hyperlink | Specifies the presence of a hyperlink at the location. See Hyperlinks.
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.16.22.
|
Related Open Document Format (ODF) Property:
The paragraph in ODF is specified with the <text:p> element. It is a basic unit of text within ODF documents, and has mixed content. Most commonly it will have a text:style-name attribute and be found within an <office:text> element.
Related HTML/CSS Property:
AAA | BBB | CCC |
DDD | EEE | FFF |
GGG | HHH | III |