I am curious as to how browsers interpret line breaks in HTML and how this translates into white space in the rendered markup. For example consider the following two divs:
<div> <select> <option>one</option> </select> <input /> </div> <div> <select> <option>one</option> </select><input /> </div> The first div will have more white space between the select and input elements because the line break between them is being rendered into white space; seen here. I am curious as to the reason behind this and what the best method to avoid this extra spacing while maintaining readable HTML is as I do not feel that the second div is very readable.