HTML pre element | Preformatted Text

Itacen Sabacok | Mar 18, 2022

<pre> tag defines preformatted text which is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks.

1<pre>
2  If you had one shot,
3
4  or one opportunity,
5
6  to seize everything you ever wanted
7
8  would you capture it, or let it slip?
9</pre>

Sample Output

If you had one shot,

or one opportunity,

to seize everything you ever wanted

would you capture it, or let it slip?