Home >Web Front-end >HTML Tutorial >bootstrap html coding specification_html/css_WEB-ITnose
1. Use two spaces instead of tabs - this is the only way to ensure consistent presentation in all environments.
2. Nested elements should be indented once (i.e. two spaces).
3. For attribute definitions, make sure to use double quotes and never single quotes.
4. Do not add a slash at the end of a self-closing element - the HTML5 specification clearly states that this is optional.
5. Do not omit optional closing tags (for example, or
).