Preserve all spaces and line breaks
The <pre>
element defines preformatted text and allows you to present text with a typewriter effect. As you can see from the example, it keeps all extra spaces and lines and uses monospaced font. This element allows you to use the<pre>
tag to present poetry, create ASCII art, or show code structure. Keep in mind that both start <pre>
and end </pre>
tags are mandatory.