Indicates the general kind of content the Preformatted Text element contains, for example, computer code, pseudocode, poetry, ASCII art, etc.
Although designed to accept any text as its value, potential values for this attribute might include such words as:
code |
Code example in a computer language such as C++ or Visual Basic |
poetry |
Poems |
ascii |
ASCII art |
man-machine |
A man-machine dialog, such as an error message and response |
pseudocode |
Code-like examples used in explanation |
This attribute is added to preserve the intellectual content of DTDs that provide such information. However, for many documents this type of data will not be available.
Value | Meaning |
---|---|
Data characters | Text, numbers, or special characters that describe the content or name the type of content for the <preformat> element, for example, “code” for sample computer code. |
Restriction: This attribute may be specified if the element is used. |