GuideML - PRE Tag
Created | Updated Apr 20, 2012
The <pre> tag is used to display pre-formatted text without losing the original layout.
Syntax and Usage
This is an HTML tag, so it may be in either upper or lowercase. We recommend lower case.
<pre>...text...</pre>
To keep the formatting of text exactly as it is typed, simply enclose the text in <pre> and </pre> tags. This displays all spaces and carriage returns (line breaks) exactly as they appear between the tags.
Known Issues
None.
Example
Shall I part my hair behind? Do Idare to eat a peach?
I shall wear white flannel trousers,
and walk upon the beach.
- TS Eliot, 'The Love Song of J Alfred Prufrock'
<pre><i>Shall I part my hair behind? Do I
dare to eat a peach?
I shall wear white flannel trousers,
and walk upon the beach.</i>
- TS Eliot, 'The Love Song of J Alfred Prufrock'</pre>