Why I use the BEM naming convention for my CSS

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI7 min

About this video

Kevin Powell explains why he uses the BEM (Block, Element, Modifier) naming convention for CSS classes and argues that developers should adopt some naming convention, comparing BEM with alternatives such as OOCSS, SMACSS and Atomic CSS. It is aimed at developers who write CSS.

What you’ll learn

  • Explain the Block, Element and Modifier parts of BEM
  • Compare BEM with OOCSS, SMACSS and Atomic CSS
  • Choose a CSS class naming convention for a project