5

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?

chervand
  • 83
  • 8

1 Answers1

7

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

hal
  • 4,845
  • 7
  • 34
  • 57