Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Hive HTML coding style guide

David Hauser edited this page May 28, 2014 · 1 revision

Attribute ordering

Attributes should use the following order to make reading templates easier:

  1. links (href, src, etc.)
  2. id
  3. classes
  4. style
  5. form/input attributes
  6. other html attributes
  7. data-attributes
  8. event-attributes
<a href="" id="" class="" style="" type="" rel="" data-target="" on-click="">like so</a>
Clone this wiki locally