bootstrap section tab code example

Example 1: bootstrap nav tabs

<!-- Bootstrap 5 Nav tabs -->
<ul class="nav nav-pills nav-fill">
   <li class="nav-item">
      <a class="nav-link active" aria-current="page" href="#">Active</a>
   </li>
   <li class="nav-item">
      <a class="nav-link" href="#">Much longer nav link</a>
   </li>
   <li class="nav-item">
      <a class="nav-link" href="#">Link</a>
   </li>
   <li class="nav-item">
      <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true"
         >Disabled</a
      >
   </li>
</ul>

Example 2: tab content bootstrap 4

<ul class="nav nav-tabs">
  <li class="nav-item">
    <a class="nav-link active" href="#">Active</a>
  </li>
  <li class="nav-item dropdown">
    <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a>
    <div class="dropdown-menu">
      <a class="dropdown-item" href="#">Action</a>
      <a class="dropdown-item" href="#">Another action</a>
      <a class="dropdown-item" href="#">Something else here</a>
      <div class="dropdown-divider"></div>
      <a class="dropdown-item" href="#">Separated link</a>
    </div>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#">Link</a>
  </li>
  <li class="nav-item">
    <a class="nav-link disabled" href="#">Disabled</a>
  </li>
</ul>

Tags:

Misc Example