DONT ADD ANYTHING HERE!

  1. The white-space CSS property sets how white space inside an element is handled
  2. Whitespace refers to characters which are used to provide horizontal or vertical space between other characters
  3. The Infra Living Standard defines five characters as "ASCII whitespace"
    1. TAB (U+0009)
    2. SPACE (U+0020)
    3. LF (U+000A)
    4. FF (U+000C)
    5. CR (U+000D)

Values

  1. normal
    1. Sequences of white space are collapsed
    2. Newline characters in the source are handled the same as other white spaces
    3. Lines are broken as necessary to fill line boxes
        Friends, Romans, countrymen, lend me your ears 
    I come to bury Caesar, not to praise him The evil that men do lives after them The good is oft interred with their bones
  2. nowrap
    Collapses white space as the normal value does, but suppresses line breaks (text wrapping) within the source
        Friends, Romans, countrymen, lend me your ears 
    I come to bury Caesar, not to praise him The evil that men do lives after them The good is oft interred with their bones
  3. pre
    1. Sequences of white space are preserved
    2. Lines are only broken at
      1. At newline characters in the source
      2. At br elements
        Friends, Romans, countrymen, lend me your ears 
    I come to bury Caesar, not to praise him The evil that men do lives after them The good is oft interred with their bones
  4. pre-wrap
    1. Sequences of white space are preserved
    2. Lines are broken at newline characters, at br, and as necessary to fill line boxes
        Friends, Romans, countrymen, lend me your ears 
    I come to bury Caesar, not to praise him The evil that men do lives after them The good is oft interred with their bones
  5. pre-line
    1. Sequences of white space are collapsed
    2. Lines are broken at
      1. newline characters
      2. br
      3. As necessary to fill line boxes
        Friends, Romans, countrymen, lend me your ears 
    I come to bury Caesar, not to praise him The evil that men do lives after them The good is oft interred with their bone
  6. break-spaces
    1. The behavior is identical to that of pre-wrap, except that
      1. Any sequence of preserved white space always takes up space, including at the end of the line
      2. A line-breaking opportunity exists after every preserved white space character, including between white space characters
      3. Such preserved spaces take up space and do not hang, thus affecting the box's intrinsic sizes (min-content size and max-content size)
          Friends, Romans, countrymen, lend me your ears 
      I come to bury Caesar, not to praise him The evil that men do lives after them The good is oft interred with their bones

Example

  <pre class="myclass">
    Friends, Romans, countrymen, lend me your ears <br>
    I come     to bury Caesar, not to praise him
    The     evil    that    men   do   lives   after   them
    The     good    is      oft   interred   with   their   bones
  </pre>

Mnemonic

Remember, nowrap, not no-wrap!!

References