S
S
Stanislav Botev2017-04-10 15:51:30
css
Stanislav Botev, 2017-04-10 15:51:30

Have I understood the essence of BEM correctly?

I'm slowly building a website for myself. I read one thing after another. I learned about BEM and decided to put its principles into practice. Look at the code, did I use the Blocks-Elements-Modifiers idea correctly?
Page Do not pay attention to the domain. If there are jambs in layout or styles, please tell me so that I can clarify the errors now and correct them.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Goryachev, 2017-04-10
@StasBotev

I don't see BEM at all. From the word in general.
What are divas without classes <div></div>? Why don't headers have a class <h2>Мои навыки:</h2>?
According to BEM, every tag on a page must have a class that is either a block or an element.
https://frontender.info/MindBEMding/
What's this? An element with a modifier that has an element?
Split "block_element" with two underscores.
Separation "block--modifier", "element--modifier" with two hyphens (new version).
Or according to the first version of Yandex with one hyphen.
Styles do not need to be written in the file itself, it is better to connect via link. In general, this layout can be rated at three with a minus. But again, this has nothing to do with BEM.
There is a small caveat here regarding optimization, styles for the first screen, but in this case, this is not important.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question