Answer the question
In order to leave comments, you need to log in
Are these BEM rules correct?
From the articles I read, I wrote a few rules for myself to make it easier to navigate, but I'm not sure if they are correct and I have a request to confirm their correctness or correct them. It will also be good if you supplement them
1) The block is universal and independent (ideally). It can be placed anywhere on the site without compromising its own appearance. Therefore, the blocks are not given styles that affect positioning.
2) An element is an integral part of a block that does not exist outside of it. Therefore, the element can be positioned within its block (different indents).
3) Modifiers in BEM set the appearance, state and behavior of blocks.
4) Mixes allow you to combine the behavior and styles of several entities without code duplication
Answer the question
In order to leave comments, you need to log in
1) The block is universal and independent (ideally). It can be placed anywhere on the site without compromising its own appearance. Therefore, the blocks are not given styles that affect positioning.
2) An element is an integral part of a block that does not exist outside of it. Therefore, the element can be positioned within its block (different indents).
3) Modifiers in BEM set the appearance, state and behavior of blocks.
4) Mixes allow you to combine the behavior and styles of several entities without code duplication
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question