Answer the question
In order to leave comments, you need to log in
And what prevents BEM layout from making everything blocks instead of elements?
Yes, what's stopping you?
What principles will be violated?
Answer the question
In order to leave comments, you need to log in
In this regard, BEM is nothing more than a class naming convention.
But it is necessary that when you start working on a large project in a large team, so that you can quickly read someone else's code, and your colleagues, because on a large project it is extremely difficult to understand in a month:
.sgrm_left_container .sgrm_dss_column{
}
And what prevents BEM layout from making everything blocks instead of elements? What principles will be violated?
I wrote a little about this in the last question. What's the point of BEM then? Did you decipher the name BEM itself? BEM - block, element, modifier. Let's throw out the elements and modifiers, only the blocks remain. So what? Why do we need it then?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question