Answer the question
In order to leave comments, you need to log in
How to properly format a BEM block?
There is a simple code:
<!-- slider -->
<aside class="slider">
<div class="wrapper">
<!-- slider-title -->
<div class="slider-title">
<h2>Натяжные потолки</h2>
<h3>Установка качественных и долговечных потолков по отличным ценам</h3>
</div>
<!-- /slider-title -->
</div>
</aside>
<!-- /slider -->
<div class="slider-title">
<h2>Натяжные потолки</h2>
<h3>Установка качественных и долговечных потолков по отличным ценам</h3>
</div>
.slider-title {
h2 {}
h3 {}
}
<div class="slider-title">
<h2 class="slider-title__h2">Натяжные потолки</h2>
<h3 class="slider-title__h3">Установка качественных и долговечных потолков по отличным ценам</h3>
</div>
.slider-title {
&__h2 {}
&__h2 {}
}
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