G
G
Genri_Rus2021-12-25 16:19:34
HTML
Genri_Rus, 2021-12-25 16:19:34

Tabs on bam and semantics how to do it right?

If the tabs are in the form of buttons?
61c719968f470156979358.png

Still use like this?

<div class="tabs">
  <ul class="tabs__nav">
    <li class="tab">Тескт</li>
  </ul>
  <div class="tabs__content"></div>
</div>

Or should the button tag be used?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Dubrovin, 2021-12-25
@Genri_Rus

if I met the tabs content class, it would knock me down. I still don't understand what it can be used for.

<ul class="tabs">
<li  class="tabs__item"><button class="tabs__button">текст</button></li>
</ul>
<div class="content"></div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question