Re:When does white space matter in HTML? (2016)
by z3t4 on Saturday July 28, 2018 @04:09PM
(#17634776)
I just hate when the web browsers renders differently depending on if you have a line break between certain elements. Line breaks in HTML source code should not matter!
[ Parent
| on HN ]
Re:When does white space matter in HTML? (2016)
by 8xde0wcNwpslOw on Saturday July 28, 2018 @08:06PM
(#17635745)
>Line breaks in HTML source code should not matter!
So, should you put spaces at the end, or at the beginning of lines in text that's broken into multiple lines?
Re:When does white space matter in HTML? (2016)
by ldjb on Saturday July 28, 2018 @04:26PM
(#17634856)
But what if you want to use elements like <pre> or <textarea>? How would you put in a line break on the rendered page? I suppose there's an argument to be made for not rendering line breaks as a space, but such a change to the HTML spec at this stage is probably not going to happen.