Coding Ninjas Logo

Home > HTML Questions > Explain the advantage of collapsing white space?



Answer: White spaces are a new sequence of space characters, which is treated as a single space character in HTML.
Because the browser collapses multiple areas into a single space, we can indent lines of text without
worrying about various fields. It enables you to organize the HTML code into a more human readable format.

Similar Questions