HTML <pre> Tag
The <pre>
tag is used to define text that is already formatted.
Text inside a <pre>
element appears in a font with a fixed width. This means the text maintains its original spacing and line breaks. The displayed text remains faithful to how it is written in the HTML source code.
Also look at:
Tag | Description |
---|---|
<code> | Defines a piece of computer code |
<samp> | Defines sample output from a computer program |
<kbd> | Defines keyboard input |
<var> | Defines a variable |