===================== HTML coding standards ===================== .. seealso:: :doc:`string-i18n` How to mark strings for translation. ---------- Formatting ---------- All HTML documents must use **two spaces** for indentation and there should be no trailing whitespace. HTML5 syntax must be used and all attributes must use double quotes around attributes. :: HTML5 elements should be used where appropriate reserving ``
`` and ```` elements for situations where there is no semantic value (such as wrapping elements to provide styling hooks). ------------------ Doctype and layout ------------------ All documents must be using the HTML5 doctype and the ```` element should have a ``"lang"`` attribute. The ```` should also at a minimum include ``"viewport"`` and ``"charset"`` meta tags. :: Example Site ----- Forms ----- Form fields must always include a ``