Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Cannot retrieve contributors at this time
HTML Style Guide
- 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.
Separation of concerns
- Ues a new line for every block, list or table element.
- Indent child elements.
- Avoid style attributes and other inline CSS.
- Avoid event handler attributes such as onclick.
Press h to open a hovercard with more details.