The BEM methodology suggests a naming convention where the block is separated from the element by a ________.

  • -
  • .
  • :
  • _
BEM (Block Element Modifier) methodology recommends using an underscore (_) to separate the block from the element in class names. This naming convention enhances code readability and helps identify the hierarchy of elements within a block. For instance, a button element inside a header block might be named header_button.
Add your answer
Loading...

Leave a comment

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