w:name (Style Name)

The primary name of a style, used to identify it in the UI and for programmatic reference.

Parent elements

Description

w:name sets the display name of a style as it appears in the UI (style gallery, style pane). It is defined in ECMA-376 Part 1 §17.7.4.9.

The w:val is the canonical localisation-independent style name (e.g. heading 1, Normal, Default Paragraph Font). The w:styleId attribute on w:style is the locale-independent programmatic identifier; w:name is the human-readable label.

Attributes

Attribute Type Possible Values Description
w:val ST_String Any non-empty string. Built-in style names are lowercase (e.g. heading 1, normal, default paragraph font). The style’s UI display name.

Examples

<w:style w:type="paragraph" w:styleId="MyStyle">
  <w:name w:val="My Custom Style"/>
</w:style>