Spaces between block elements are ignored. However, spaces between inline elements are converted into one space. The reason is that inline elements may be interleaved with the regular inner text of the parent element.
Consider the following example:
<p>This is my colored <span class="red_text">Hello</span> <span class="blue_text">World</span> example</p>
Ideally, you want the user to see
This is my colored Hello World example
Removing spaces between two intervals will result in:
This is my colored HelloWorld example
But the same sample can be rewritten by the author (with OCD on HTML formatting :-)) as:
<p> This is my colored <span class="red_text">Hello</span> <span class="blue_text">World</span> example </p>
It would be better if it were shown sequentially with the previous example.
Franci Penov Feb 25 '09 at 23:23 2009-02-25 23:23
source share