3 ms·
Yes, HTML collapses whitespace. It's to allow you to format and structure your source html with linebreaks and indentation without it effecting the output. If
by SimonPStevens 16y ago
Yes, HTML collapses whitespace. It's to allow you to format and structure your source html with linebreaks and indentation without it effecting the output.
If you don't want it to collapse you would use a "Non-breaking space"
See:
http://en.wikipedia.org/wiki/Non-breaking_space#Use_as_non-collapsing_white-space http://en.wikipedia.org/wiki/Non-breaking_space#Use_as_non-c...