Block-level Elements

Text in a Preformatted Element

This             text

        spans              several
   lines

                     and             has             lots
  of         extra              

whitespace.

The preformatted element keeps the spaces between words the way they are written in the text.

Same Text in a Paragraph Element

This text spans several lines and has lots of extra whitespace.

The paragraph element ignores all the spaces between words. It only puts one space regardless of how many are in the source text.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

The two paragraphs above are inside a division element. There was no visible change to the page from putting the paragraphs inside the division.