Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 22 lines (16 sloc) 0.629 kB
b9a4b77 @ahume Added HTML coding guide.
ahume authored
1 # HTML Style Guide
2
3 ## General
4
5 * Use UTF-8 encoding.
6 * Indents are four spaces.
7 * Lowercase element names, attribute names, and attribute values.
8 * Lines with nothing on them should have no whitespace.
9 * There should be no whitespace at the end of a line.
10 * HTML5 doctype, valid document where possible.
11 * XML style - ie, all elements must close.
12
13 ## Formatting
14
15 * Ues a new line for every block, list or table element.
16 * Indent child elements.
17
18 ## Separation of concerns
19
20 * Avoid style attributes and other inline CSS.
21 * Avoid the javascript pseudo protocol.
22 * Avoid event handler attributes such as onclick.
Something went wrong with that request. Please try again.