What is the main advantage of using a methodology like OOCSS?
- It focuses solely on the layout of the webpage
- It increases the specificity of CSS rules
- It limits the flexibility of styling
- It promotes code reusability and reduces redundancy
Object-Oriented CSS (OOCSS) promotes code reusability by separating structure and skin. This means styling for layout is kept separate from styling for visual design, making the code more modular and easier to maintain.
Loading...
Related Quiz
- While using Bootstrap, a developer needs to override default styles for specific components. What is the best practice for doing this without affecting global styles?
- How can you set a fallback font in case the primary font fails to load?
- What is the main difference between position: fixed; and position: sticky; in CSS?
- Which CSS property adds shadow to text?
- The attr() function in CSS is used to retrieve the value of an HTML ______.