In brief
HTML pre displays preformatted text, preserving whitespace and line breaks differently from an ordinary paragraph. It is often used for multi-line examples.
Useful to know
HTML pre displays preformatted text, preserving whitespace and line breaks differently from an ordinary paragraph. It is often used for multi-line examples. [1]
A long command may overflow a narrow screen. Check wrapping or suitable scrolling rather than shrinking text to an unreadable size. pre does not remove the need to display special characters safely.
Sources
For further detail and to check the information: