WordprocessingML
Paragraphs, runs, tables, styles — the full text-layer schema for .docx documents.
108 elements documentedw:abstractNum
w:abstractNum (Abstract Numbering Definition)
Defines the template for a multi-level list, specifying the format and appearance of each level independently.
w:abstractNumId
w:abstractNumId (Abstract Numbering ID Reference)
References the w:abstractNum definition (by w:val) used as the base for this numbering instance.
w:b
w:b (Bold)
Applies bold formatting to the text of the run.
w:basedOn
w:basedOn (Base Style)
Specifies the styleId of the parent style from which this style inherits all unoverridden properties.
w:body
w:body (Document Body)
Container for the block-level content that forms the main story of the document.
w:bookmarkEnd
w:bookmarkEnd (Bookmark End)
Marks the end of a named bookmark range, paired with a corresponding w:bookmarkStart.
w:bookmarkStart
w:bookmarkStart (Bookmark Start)
Marks the beginning of a named bookmark range that can be targeted by hyperlinks or cross-references.
w:br
w:br (Break)
Inserts a line break, page break, or column break at the current position within a run.
w:cantSplit
w:cantSplit (Prevent Row Split)
Prevents the table row from being split across a page break.
w:caps
w:caps (All Capitals)
Displays all lowercase letters in the run as uppercase without altering the stored text.
w:col
w:col (Column Definition)
Specifies the width and spacing for an individual column in a multi-column layout.
w:color
w:color (Text Color)
Sets the foreground (font) color of the run using an RGB hex value or the 'auto' keyword.
w:cols
w:cols (Column Layout)
Defines multi-column layout for the section, specifying column count, spacing, and widths.
w:compat
w:compat (Compatibility Settings)
Container for compatibility flags that toggle legacy rendering behavior for interoperability with older processors.
w:contextualSpacing
w:contextualSpacing (Contextual Spacing)
Suppresses the space before or after a paragraph when the adjacent paragraph uses the same style.
w:dStrike
w:dStrike (Double Strikethrough)
Applies two horizontal strikethrough lines through the text of the run.
w:defaultTabStop
w:defaultTabStop (Default Tab Stop Interval)
Specifies the default tab stop distance (in twentieths of a point) used when no explicit tab stop is defined.
w:del
w:del (Deleted Content)
Marks content as deleted during tracked-changes revision, carrying author and date information.
w:delText
w:delText (Deleted Text Content)
Contains the text content of a deleted run inside a w:del revision-tracking element.
w:docDefaults
w:docDefaults (Document Defaults)
Specifies the default paragraph and run formatting properties applied to all content that has no explicit style.
w:docGrid
w:docGrid (Document Grid)
Configures the document grid for CJK character alignment and line pitch.
w:document
w:document (Root Document Element)
Root element of the WordprocessingML main document part (document.xml).
w:drawing
w:drawing (Inline or Floating Drawing)
Container that embeds a DrawingML inline (wp:inline) or floating (wp:anchor) drawing object within a run.
w:evenAndOddHeaders
w:evenAndOddHeaders (Different Even/Odd Headers)
Enables separate header and footer definitions for even and odd pages throughout the document.
w:fldChar
w:fldChar (Complex Field Character)
Marks the beginning, field separator, or end of a complex field using w:fldCharType (begin, separate, end).
w:fldSimple
w:fldSimple (Simple Field)
Represents a simple field with a self-contained instruction string and optional cached display value.
w:footerReference
w:footerReference (Footer Reference)
Links a footer part to the section and specifies its type (default, first, or even).
w:ftr
w:ftr (Footer)
Root element of a footer part (footer1.xml etc.), containing block-level content rendered in the page footer area.
w:gridCol
w:gridCol (Grid Column)
Specifies the preferred width of a single column in the table grid (in twentieths of a point).
w:gridSpan
w:gridSpan (Column Span)
Specifies the number of grid columns this cell spans horizontally (for merged cells).
w:hdr
w:hdr (Header)
Root element of a header part (header1.xml etc.), containing block-level content rendered in the page header area.
w:headerReference
w:headerReference (Header Reference)
Links a header part to the section and specifies its type (default, first, or even).
w:highlight
w:highlight (Highlight Color)
Applies a highlight color to the background of the run text using a named color value.
w:hyperlink
w:hyperlink (Hyperlink)
Wraps inline content as a clickable hyperlink to an external URL or internal bookmark target.
w:i
w:i (Italic)
Applies italic formatting to the text of the run.
w:ilvl
w:ilvl (Numbering Level Reference)
Specifies the zero-based list level (0-8) within the numbering definition for this paragraph.
w:ind
w:ind (Paragraph Indentation)
Sets the left, right, and first-line (or hanging) indentation for a paragraph in twentieths of a point.
w:ins
w:ins (Inserted Content)
Marks content as inserted during tracked-changes revision, carrying author and date information.
w:instrText
w:instrText (Field Instruction Text)
Contains the instruction string (e.g., 'TOC \o 1-3') for a complex field between begin and end fldChar elements.
w:jc
w:jc (Paragraph Justification)
Specifies the horizontal alignment of text within the paragraph (left, center, right, both, distribute).
w:keepLines
w:keepLines (Keep Lines Together)
Prevents all lines of the paragraph from being split across a page break.
w:keepNext
w:keepNext (Keep With Next)
Prevents a page break between this paragraph and the immediately following paragraph.
w:kern
w:kern (Font Kerning)
Enables automatic pair kerning for the run at and above the specified minimum font size (in half-points).
w:lang
w:lang (Language)
Specifies the language tag for the run text to control spell-checking and grammar-checking.
w:link
w:link (Linked Style)
Links a paragraph style to a corresponding character style (or vice versa) for inline application.
w:lvl
w:lvl (Numbering Level)
Defines the number format, alignment, indentation, text template, and paragraph/run properties for one level of a list.
w:lvlJc
w:lvlJc (Level Justification)
Specifies the horizontal alignment of the numbering symbol within its indent space.
w:lvlOverride
w:lvlOverride (Level Override)
Overrides specific properties of a single level in a numbering instance without changing the abstract definition.
w:lvlText
w:lvlText (Level Text Template)
Defines the text pattern for the numbering label, e.g. '%1.' where %1 is replaced by the current level's number.
w:name
w:name (Style Name)
The primary name of a style, used to identify it in the UI and for programmatic reference.
w:next
w:next (Next Paragraph Style)
Specifies the style automatically applied to a new paragraph created when pressing Enter at the end of a paragraph using this style.
w:noProof
w:noProof (No Proofing)
Excludes the run from spell-checking and grammar-checking.
w:num
w:num (Numbering Definition Instance)
A concrete numbering definition that references an abstract numbering definition and optionally overrides individual levels.
w:numFmt
w:numFmt (Number Format)
Specifies the number format for a level: decimal, lowerLetter, upperRoman, bullet, etc.
w:numId
w:numId (Numbering Definition Instance Reference)
References a numbering definition instance (w:num) that controls the list formatting.
w:numPr
w:numPr (Numbering Properties)
Specifies that the paragraph belongs to a list, referencing a numbering definition and level.
w:numbering
w:numbering (Numbering Definitions)
Root element of the Numbering part (numbering.xml), containing abstract and concrete numbering definitions.
w:outlineLvl
w:outlineLvl (Outline Level)
Assigns an outline level (0-8) to the paragraph, used in navigation panes and TOC generation.
w:p
w:p (Paragraph)
Container element for one paragraph in WordprocessingML.
w:pBdr
w:pBdr (Paragraph Borders)
Defines border lines on the top, bottom, left, and right edges of a paragraph.
w:pPr
w:pPr (Paragraph Properties)
Container for all formatting properties applied to a paragraph.
w:pStyle
w:pStyle (Paragraph Style Reference)
References a named paragraph style by its styleId, applying all properties of that style.
w:pageBreakBefore
w:pageBreakBefore (Page Break Before)
Forces a page break immediately before this paragraph.
w:pgMar
w:pgMar (Page Margins)
Defines top, bottom, left, right, header, footer, and gutter margins for the page.
w:pgNumType
w:pgNumType (Page Number Type)
Configures the page number format (decimal, roman, letter) and starting value for the section.
w:pgSz
w:pgSz (Page Size)
Specifies the width, height, and orientation of the page.
w:r
w:r (Text Run)
An inline region of text sharing a uniform set of character-level formatting properties.
w:rFonts
w:rFonts (Run Fonts)
Specifies the font family to use for the run, with separate settings for ASCII, East Asian, complex script, and high-ANSI characters.
w:rPr
w:rPr (Run Properties)
Container for all character-level formatting properties applied to a run or paragraph mark.
w:rStyle
w:rStyle (Run Style Reference)
References a named character style by its styleId, applying its run properties to the run.
w:sdt
w:sdt (Structured Document Tag)
A region of content with an associated content control or custom XML data binding.
w:sdtContent
w:sdtContent (SDT Content)
Contains the actual document content of a structured document tag.
w:sdtPr
w:sdtPr (SDT Properties)
Contains control-type and metadata properties for a structured document tag.
w:sectPr
w:sectPr (Section Properties)
Defines layout properties for a section: page size, margins, columns, headers, and footers.
w:settings
w:settings (Document Settings)
Root element of the Settings part (settings.xml), containing document-wide configuration options.
w:shd
w:shd (Shading)
Applies a background fill color and optional pattern to a paragraph, run, or table cell.
w:smallCaps
w:smallCaps (Small Capitals)
Displays lowercase letters as small-sized capital letters.
w:spacing
w:spacing (Spacing)
Controls space before and after a paragraph and the line spacing rule and value.
w:start
w:start (Numbering Start Value)
Specifies the starting numeric value for a numbering level.
w:strike
w:strike (Single Strikethrough)
Applies a single horizontal strikethrough line through the text of the run.
w:style
w:style (Style Definition)
Defines a named reusable style (paragraph, character, table, or numbering type) with a set of formatting properties.
w:styles
w:styles (Style Definitions)
Root element of the Styles part (styles.xml), containing all paragraph, character, table, and numbering style definitions.
w:sym
w:sym (Symbol)
Inserts a symbol character from a named font at the specified character code.
w:sz
w:sz (Font Size)
Specifies the font size in half-points (e.g., w:val='24' equals 12pt).
w:t
w:t (Text Content)
Contains the literal character data of a run. Use xml:space='preserve' when leading or trailing spaces are significant.
w:tab
w:tab (Tab Character)
Inserts a tab character at the current position within a run, advancing to the next tab stop.
w:tabs
w:tabs (Custom Tab Stops)
Container for one or more custom tab stop definitions within a paragraph.
w:tbl
w:tbl (Table)
Container for a table consisting of table properties, a table grid definition, and one or more table rows.
w:tblBorders
w:tblBorders (Table Borders)
Defines border styles for the outside edges and inside rules of the table.
w:tblCellMar
w:tblCellMar (Table Cell Margins)
Sets default top, bottom, left, and right cell margins for all cells in the table.
w:tblGrid
w:tblGrid (Table Grid)
Defines the column structure of the table by specifying the width of each column slot.
w:tblHeader
w:tblHeader (Table Header Row)
Marks the row as a header row that repeats at the top of each new page the table spans.
w:tblLook
w:tblLook (Table Style Conditional Formats)
Controls which conditional formatting sections of the table style are applied (first row, last column, banding, etc.).
w:tblPr
w:tblPr (Table Properties)
Contains all formatting properties that apply to the entire table.
w:tblStyle
w:tblStyle (Table Style Reference)
References a named table style by its styleId, applying all formatting of that style to the table.
w:tblW
w:tblW (Table Width)
Specifies the preferred total width of the table using a value and unit type (dxa, pct, auto).
w:tc
w:tc (Table Cell)
Contains the content and formatting properties for a single table cell.
w:tcBorders
w:tcBorders (Table Cell Borders)
Defines the border style for each edge (top, bottom, left, right, diagonal) of an individual table cell.
w:tcPr
w:tcPr (Table Cell Properties)
Contains formatting properties for a table cell, including width, borders, and span.
w:tcW
w:tcW (Table Cell Width)
Specifies the preferred width of a table cell using a value and unit type.
w:titlePg
w:titlePg (Different First Page)
Enables a separate header and footer for the first page of the section.
w:tr
w:tr (Table Row)
Contains a single row of table cells and the row-level formatting properties.
w:trHeight
w:trHeight (Table Row Height)
Specifies the height of a table row, with a rule of 'auto', 'atLeast', or 'exact'.
w:trPr
w:trPr (Table Row Properties)
Contains formatting properties that apply to the entire table row.
w:u
w:u (Underline)
Applies underline formatting to the run, with a w:val attribute specifying the underline style.
w:vMerge
w:vMerge (Vertical Merge)
Marks a cell as part of a vertically merged group. The first cell uses w:val='restart'; subsequent cells omit the attribute.
w:vanish
w:vanish (Hidden Text)
Marks the run as hidden so its content is not displayed or printed (unless Show Hidden Text is enabled).
w:vertAlign
w:vertAlign (Vertical Alignment)
Applies superscript or subscript vertical positioning to the run relative to the baseline.