Using HTML5 Semantic Elements with BEM Methodology

961 views Asked by At

Is it a good practice to use HTML5 semantic elements with BEM? E.g. is

<header class="header header--full">
    <nav class="header__nav">...</nav>
</header>

OK or I should use divs instead?

1

There are 1 answers

0
hal On BEST ANSWER

Use the semantic elements. Your example is exactly how you should do it.