ANSI/NISO Z39.96-2012

10 Article Authoring Tag Set • 10.5 Attributes

10.5.78 @preformat-type Type of Preformatted Text

Type of content contained in the <preformat> element (for example, computer code, poetry, pseudocode, ASCII art, XML tagging).

Many journal tag sets make a distinction between different types of preformatted text (some by means of attributes, others with distinct elements). In this Tag Set, all these figure types will be tagged using the <preformat> element. The distinctions between different types of preformatted text can be preserved using the @preformat-type attribute, for example, by recording the content type of the text, such as computer code.

In element <preformat>, this attribute may be used if the element is used.
Value Meaning
Text, numbers, or special characters A word or phrase that describes the content or names the type of content for the <preformat> element, for example, code for sample computer code or xml for an XML-tagged data sample.