mirror of
https://github.com/primer/css.git
synced 2024-11-30 19:53:11 +03:00
Adding guideline about soft-tabs for HTML
This commit is contained in:
parent
7d296bdec3
commit
dbf98df578
@ -14,6 +14,7 @@ Best practices and guidelines for writing HTML and CSS with approachable formatt
|
|||||||
|
|
||||||
### General formatting
|
### General formatting
|
||||||
|
|
||||||
|
* Use soft-tabs with a two space indent. Spaces are the only way to guarantee code renders the same in any person's environment.
|
||||||
* Paragraphs of text should always be placed in a `<p>` tag. Never use multiple `<br>` tags.
|
* Paragraphs of text should always be placed in a `<p>` tag. Never use multiple `<br>` tags.
|
||||||
* Items in list form should always be in `<ul>`, `<ol>`, or `<dl>`. Never use a set of `<div>` or `<p>`.
|
* Items in list form should always be in `<ul>`, `<ol>`, or `<dl>`. Never use a set of `<div>` or `<p>`.
|
||||||
* Every form input that has text attached should utilize a `<label>` tag. **Especially radio or checkbox elements.**
|
* Every form input that has text attached should utilize a `<label>` tag. **Especially radio or checkbox elements.**
|
||||||
|
Loading…
Reference in New Issue
Block a user