Ignoring Whitespace

Making things easier to read

Recreate the example on page 47

Use this playground to recreate the example on page 47 of white space collapsing. The example demonstrates that two or more spaces put together in your HTML code will be visually displayed as only one space. The best use of this is for indenting purposes. It is rare that you will put more than one space between words in a paragraph like in the example, which is just demonstrating how things work.

 

HTML

CSS

JavaScript

Output