“To make code easier to read authors often add extra spaces or start some elements on a new line”, from my understanding the browser still treats these as a single line. I’m just confused by the example they provided on why the hell adding some spaces in-between, “the moon is drifting” and adding a line break for “Earth” make this code easier to read. I feel like this code would still be very easy to read if not easier to read without adding the extra space or line break.

r/webdev - Confused about White Space Collapsing Example

Source link

Write A Comment