preformatting
Preformatting refers to the preservation of whitespace and line breaks in a block of text, preventing the rendering engine from collapsing sequences of spaces or line endings into a single space. It is commonly used for content where exact spacing matters, such as source code, tabular data, ASCII art, poetry, or logs.
In HTML and similar markup languages, preformatted text is delivered with a dedicated element, typically the
CSS provides explicit control over preformatted text through the white-space property, enabling values such as pre,
Outside HTML, preformatting is used in word processing, documentation, and data preparation to stage text before
Limitations include potential readability issues on small displays, accessibility concerns if the content is not semantically