How does SMACSS (Scalable and Modular Architecture for CSS) categorize its styles?
- By alphabetical order
- By color
- By position in the HTML
- By specificity
SMACSS categorizes its styles by specificity. In SMACSS, styles are organized into five categories: Base, Layout, Module, State, and Theme. This categorization helps in creating a scalable and maintainable CSS architecture by defining how styles should be applied and structured.
Loading...
Related Quiz
- What is the purpose of the @keyframes rule in CSS?
- How can you create a blur effect on an image using CSS?
- You're tasked with creating a spinner loader animation that rotates 360 degrees indefinitely. How would you define this in the @keyframes rule?
- The process by which styles are applied to an element based on their source and specificity is known as the ________.
- Which tool can be used to automatically add vendor prefixes to CSS properties?