<div class="layout">
<div class="layout__row header">
<div class="header__cell">
Пусть это HEADER
</div>
</div>
<div class="layout__row navbar">
<div class="navbar__cell">
А это пусть NAVBAR
</div>
</div>
<!-- variant 1 -->
<div class="layout__row">
<div class="layout__container">
<main class="layout__col layout__col_main">
main
</main>
<aside class="layout__col layout__col_side">
side
</aside>
</div>
</div>
<!-- variant 2 -->
<div class="layout__row">
<div class="layout__container">
<main class="layout__main">
main
</main>
<aside class="layout__side">
side
</aside>
</div>
</div>
<div class="layout__row footer">
<div class="footer__cell">
Это FOOTER
</div>
</div>
</div>
<p class = "title title_size_big">
</p>
<div class="test" style="margin-bottom:10px">
</div>
.block {} /* без стилей */
.block_green { color: green; }
.block_red { color: red; }
<div class"block block_green">
</div>
<div class="block1">
<div class="block1__title title">Title</div>
</div>
<div class="block2">
<div class="block2__title title">Title</div>
</div>
<div class="block3">
<div class="block3__title title title_size_large">Title</div>
</div>
<div class="block3 block3_theme_dark">
<div class="block3__title block3__title_inverse title">Title</div>
</div>
block__elem_mod-name_mod-value
class="text text_size_s24 text_align_left"
text
с модификаторами.size
со значением s24
align
со значением left
Блок -> Элемент
.<header class="header-section">
<div class="container header">
<div class="header__logo logo">
<h2 class="logo__title">APP Design</h2>
<p class="logo__description">Free PSD Website Template</p>
</div>
<form action="" class="header__search search-form">
<input type="text" placeholder="" class="search-form__field">
<button class="search-form__button">Search</button>
</form>
</div>
</header>
.header-section {}
.header {
&__logo {}
&__search {}
}
.logo {
&__title {}
&__description {}
}
.search-form {
&__field {}
&__button {}
}
<div class="site">
<header class="site__header"></header>
<main class="site__main page">
<div class="page__breadcrumb breadcrumb"></div>
<article class="page__article">
<div class="page__title"><h1></h1></div>
<div class="page__content"></div>
<footer class="page__footer"></footer>
<aside class="page__meta-information"></aside>
</article>
</main>
<footer class="site__footer"></footer>
</div>
<div class="section">
<div class="title">
<h2>Заголовок</h2>
<div class="title__subtitle">Подзаголовок</div>
</div>
<div class="inner features">
<div class="features__item">
<div class="block">
<div class="block__icon">
<img class="block__image" src="images/icon1.png" alt="" />
</div>
<div class="block__text">Текст текст текст текст текст</div>
</div>
</div>
<div class="features__item">
<div class="block">
<div class="block__icon">
<img class="block__image" src="images/icon1.png" alt="" />
</div>
<div class="block__text">Текст текст текст текст текст</div>
</div>
</div>
</div>
</div>
<div class="logo">
<a href="/" class="logo__link">Веб<span class="logo__accent">Студия</span></a>
</div>
<div class="logo">
<a href="/" class="logo__link">Веб<span class="text-accent">Студия</span></a>
</div>
Модификаторами в БЭМ задают блокам внешний вид, состояние и поведение.