A
A
Artem Abragmad2020-04-25 14:37:04
BEM
Artem Abragmad, 2020-04-25 14:37:04

What is the correct name for a nested block?

How to properly name a nested block?
Let's say we have a code:

<main class="main">
        <div class="wrapper">
            <div class="main-left"></div>
            <div class="main-right">
                <a class="link">ссылка</a>
                <div class="mail">
                    <div class="title">title</div>
                    <div class="content"></div>
                </div>
                <div class="elem2">
                    <div class="title">title</div>
                    <div class="content"></div>
                </div>
                ...
            </div>
        </div>
    </main>


PS by BEM

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny, 2020-05-18
@Dopet

.main.main__sidebar.main__content
→→.link
→→.elem
→→→.elem__title
→→→.elem__content

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question