HTML coding style: attribute starts on a new line

Posted by Matty on Pro Webmasters See other posts from Pro Webmasters or by Matty
Published on 2012-09-06T16:45:48Z Indexed on 2012/09/06 21:52 UTC
Read the original article Hit count: 414

Filed under:
|

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?

© Pro Webmasters or respective owner

Related posts about html

Related posts about html5