Tanvir Ahamed
Nov 28, 2021
BEM(Block__Element — Modifier)
BEM(Block__Element — Modifier)

BEM is a naming convention standard for CSS class style.

  1. A block that holds everything (elements) inside and acts as a scope.
  2. The element acts as a specific part of the component.
  3. Modifier which adds additional styles to a specific element(s).

Bem is a very good naming convention for developers. Others developers can easily understand your code by this naming convention. So I recommend you use this convention in every project.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Tanvir Ahamed
Tanvir Ahamed

Written by Tanvir Ahamed

0 Followers

Full-stack developer sharing insights on JavaScript, React, Next.js, Node.js, and software development. Passionate about scalable apps & backend architecture.

No responses yet

Write a response