From time to time, I find code in page templates such as this:
-- where someone has been careful not to leave any white space in the viewable text; spaces are used only inside the tags. I find this hard to read and edit. Usually I just live with it, but occasionally I have added a few white-space characters, in order to break one long line into several shorter ones that are easier to work with. It didn't seem to make any difference when I viewed the page on my screen.
Am I missing something? Is there an important reason to write code with no white space, or was it just a preference by the original author? Or maybe something left over from earlier versions of the HTML standard, or for compatibility with older browsers?
Thanks --
Code:
<div class="column one-fourth"><span data-icon=""></span><strong class="hide medium-show">ORDER CONFIRMATION</strong><strong class="medium-hide">STEP 4</strong></div>
Am I missing something? Is there an important reason to write code with no white space, or was it just a preference by the original author? Or maybe something left over from earlier versions of the HTML standard, or for compatibility with older browsers?
Thanks --
Comment