Requests that, when printing or displaying the associated element, all white space such as tabs, ordinary spaces, and line breaks be preserved.


As used with the Preformatted Text element (its only usage at present), the value of this attribute has been fixed as “preserve”. Should this attribute be used with other elements in the future, the value would not necessarily be fixed.

Attribute Values

In Element

<preformat> Preformatted Text
Value Meaning
preserve White space should be preserved. This value is fixed and cannot be changed in a document.
Restriction: This attribute value may not be changed.