display text with spaces in html code example Example: how to add spaces between text in html p { white-space: pre; }