2 min readBEM Methodology, CSS 🎨, HTML <i need a br > +1

🚀🎨 An Introduction to the World of BEM! 🎨🚀

Hi, coders and designers! Today let’s talk about one of the most effective methodologies for organising CSS – #BEM.

👾 What is BEM? BEM stands for “Block”, “Element”, “Modifier”. It’s a methodology created by the Yandex team for writing scalable and easy-to-maintain code.

🔹 A “Block” is a standalone, reusable component of a web page. 🔹 An “Element” is a part of a block that defines its structure or function. 🔹 A “Modifier” is a property that changes the look or behaviour of a block or element.

💡 Why BEM?

  • 🧩 Structured, readable code.
  • 🔄 Reusable components.
  • 🚀 Code that is easy to maintain and extend.
  • 🎯 Fewer problems with cascading styles.

🔥 Example: .block {} .block__element {} .block–modifier {}

🤔 Do you use BEM in your projects? Share your experience in the comments!

To learn the BEM (Block Element Modifier) methodology, which aims to make code more readable and less complex, you can use various online resources. Here are a few options:

  1. Scalable CSS: This resource offers a quick-start guide to BEM that helps you start practising and using BEM in your projects. It gives an overview of BEM and a free cheat sheet for a quick start​1​.
  2. The official BEM website: This site has expert recommendations on using BEM and comparisons with other methodologies such as SMACSS and OOCSS. Here you can find information about the core principles of BEM and how to use them​2​.
  3. GetBEM: This site explains how BEM helps you reuse components and share code in the front end. It also covers the BEM naming rules​3​.
  4. CSS-Tricks: This resource gives a general overview of BEM, explaining its goals and how it helps developers better understand the relationship between HTML and CSS in a project​4​.
  5. Toptal: Toptal discusses why organising styles matters when building large, complex projects, and how the BEM methodology can help, in particular using BEM to organise CSS in large projects​5​.

Each of these resources offers a unique approach to learning BEM, so you can choose the one that best fits your needs and learning style.

#BEM #css #webdesign #webdevelopment #coding #frontend #codingtips #programming #technology #computerscience #developers #innovation #design #backend #fullstack #ittips #digitalworld #coders #learntogether #zimin_dev #zimin_dev_blog

Sasha Zimin

Leave a Reply

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