- Always use double quote for html attributes
<img src='http://url.com'/>
<img src="http://url.com"/>
- Kebab case format for values in attributes
<input id='myAwesomeId' name="myAwesomeName"/>
<input id='my-awesome-id' name="my-awesome-name"/>
- Elements with more than 2 attributes should span multiple lines.
<input id='myAwesomeId' name="myAwesomeName" type="text" placeholder="An useless placeholder"/>
<input
id="my-awesome-id"
name="my-awesome-name"
type="text"
placeholder="An useless placeholder but in one line"
/>
- The img tag always must include the alt attribute
<img src="http://url.com"/>
<img
src="http://apprunn.io/pedrito.png"
alt="The human debugger"
/>
- The a tag with target="_blank" always must include the rel="noopener" attribute.
<a href="http://url.com" target="_blank"/>
<a
href="http://url.com"
target="_blank"
rel="noopener"
/>
- The input tag always must be used together a label tag or the
aria-label attribute for ocassions where the designer hate accessibility
<input type="text" placeholder="I am the label because designer hate people"/>
<label>I am a bad label</label>
<input type="text" placeholder="I am the placeholder with a bad label"/>
<label for="kind-input">The real label</label>
<input
id="kind-input"
type="text"
placeholder="I am just a kind placeholder"
/>
<input
id="kind-input"
type="text"
placeholder="I am - still - just a kind placeholder"
aria-label="The real label"
/>