Using HTML5 Semantic Elements with BEM Methodology

Is it good to use HTML5 semantic elements with BEM? For example. this is

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

      

OK or should I use divs instead?

+3


source to share


1 answer


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



+4


source







All Articles