/ Published in: CSS
The tag that defines preformatted text is the only tag in HTML that respects and preserves whitespaces like line-breaks, blanks, tabs and multiple spaces between words. Whatever is enclosed inside the pre element will be displayed as-it-is on the web browser.
URL: http://labnol.blogspot.com/2006/10/html-css-trick-for-displaying-code.html