Mykyta Kavetskyi• 240
@OniOdd
Posted
Hello! 😎 Here is what I can advise you:
- Write classes, identifiers, and selectors in general in lower case.
- If the class consists of two words, then separate them with a dash (for example: card-back).
- Try to avoid such specificity of selectors, such as: "section .CardBack .text". It is enough to use one selector.
- Reduce markup. Whenever possible, avoid superfluous parent elements when writing HTML. Many times this requires iteration and refactoring, but produces less HTML.
- It is also advisable to connect fonts in an html file using the link tag, rather than in a css file using @import.
Good luck! 👍
Marked as helpful
0