A
A
Alexey Orlov2020-03-06 08:23:24
HTML
Alexey Orlov, 2020-03-06 08:23:24

How to write in BEM correctly?

<div class="rating">
    <ul class="rating__list">
        <li class="rating__item">
            <div class="rating__*"></div> или <div class="rating__item__*"></div> Как правильно по БЭМ?
        </li>
   </ul>
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WapSter, 2020-03-06
@LeshaGFB

The documentation says that you can not name the element of the element rating__item__* your case. And why are you asking? In the second and third lines, he correctly named the blocks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question