HTML coding style: attribute starts on a new line
- by Matty
sublvl's front end developer seems to have a strange coding style that I've never seen before. Every time they begin a new element, immediately after the element name they insert a line break. The first thing that appears on the next line is the first attribute of the element. For example:
id="player-container"><div
id="player-bar"><div
id="player-controls-wrapper"><div
id="player-controls"><div
id ="player-controls-buttons"> <a
The above code was found here.
I've never seen this kind of coding style before. What's going on here? Is this just a quirky style or is there some reasoning behind it?