In the BEM methodology, how is a modifier typically represented in a class name?
- Using a double underscore
- Using camelCase
- Using hyphens
- Using underscores
In the BEM (Block Element Modifier) methodology, a modifier is typically represented in a class name using underscores. This helps maintain a clear and consistent naming convention in your CSS classes. For example, if you have a block element called "button," a modifier for its size could be represented as "button__size_large."
Loading...
Related Quiz
- What is the difference between the em and rem units when setting font size in CSS?
- What is the main advantage of using a modular CSS approach?
- How would you blend two overlapping elements using the mix-blend-mode property?
- What does the animation-fill-mode: forwards; property-value combination do?
- How can you ensure that a CSS transition applies only when a specific property changes?