Answer the question
In order to leave comments, you need to log in
How to properly organize BEM markup?
It is semantically correct to write directly in the section heading. At the same time, it is considered that for the section block you need to use it when you can give a meaningful name, i.e. essentially a class for section. But there are situations when there is a logical block, but it needs several outer wrappers, as in this case
<div class="page-main__banner banner">
<section class="banner__content">
<h1 class="banner__title">Быстрая доставка цветов</h1>
<ul class="banner__advantages">
<li class="banner__advantage banner__advantage--rose">
Ежедневный привоз свежих цветов
</li>
<li class="banner__advantage banner__advantage--ruble">
Низкие цены за счет больших поставок
</li>
<li class="banner__advantage banner__advantage--car">
Быстрая круглосуточная доставка
</li>
</ul>
</section>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question