The following is written in the documentation

<!-- Неверно. Описывается внешний вид --> <div class="red-text"></div> 

But if I just want to write a text-red class and use it to text that should be red. And let, apart from this class, the tag will have nothing more. If you can not do that, then how?

Each time write block __ modifier. In terms of file size, this method loses at times

  • Did you understand correctly the whole essence of BEM? Do as stated in the instructions and close your eyes on the file size. - Nilsan
  • The long footcloth of classes is a minus of BEM. If you have a customer / boss with a mauser near your head, do not use your .red-text for health. Well, or text-block.text-block_red . - zhurof

1 answer 1

There are 2 options: 1) BEM; 2) not BEM.

Here is a good video with reflections on BEM: https://www.youtube.com/watch?v=kBgHdSOj33A

Another emmet supports BEM, if you are too lazy to write and copy-paste. The size here is not the main thing. Minifiers will cut all unnecessary.