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."
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *