What is the advantage of collapsing whitespace?

What is the advantage of collapsing whitespace?

The advantage of collapsing whitespace is that the HTML code becomes neat and is in a much more readable form. Blank spaces in HTML are treated as a single space character. So, the browser makes multiple spaces into a single space, codes can be written without worrying about the multiple spaces.

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.