Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 811d0b20aa
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (16 sloc) 0.629 kB

HTML Style Guide

General

  • Use UTF-8 encoding.
  • Indents are four spaces.
  • Lowercase element names, attribute names, and attribute values.
  • Lines with nothing on them should have no whitespace.
  • There should be no whitespace at the end of a line.
  • HTML5 doctype, valid document where possible.
  • XML style - ie, all elements must close.

    Formatting

    • Ues a new line for every block, list or table element.
    • Indent child elements.

    Separation of concerns

    • Avoid style attributes and other inline CSS.
    • Avoid the javascript pseudo protocol.
    • Avoid event handler attributes such as onclick.
Jump to Line
Something went wrong with that request. Please try again.