Browsers remove extra spaces when displaying an HTML file code example Example: remove extra space in code html pre, code { white-space: pre-line; }