HTML-CSS-Best-Practices-Checklist
HTML-CSS-Best-Practices-Checklist
Good Syntax
Use only straight single (') or double (") quotation marks in the code
Close all opening tags (unless the tag is self-closing)
Leave space between the attributes and the element or other attributes
Follow the attribute pattern: attribute name, equal sign (=), quotation marks
(e.g., id="id-name", class="class-name", alt="description")
Left-align selectors
Place closing curly braces on their own line, aligned with the selector
Indent each rule (property + value) on its own line and align it with the other rules
Group multiple selectors if the selectors share the same styles
Use shorthand for padding and margin properties with multiple values
Separate multiple font-family values with a comma
Add quotation marks around font-family names with multiple words
Create unique names for classes and IDs
Well-Organized