Lists

Ordered Lists

  1. First element
    1. First element
    2. First element
  2. Second element
  3. Third element
<ol class="list list-ordered">
  <li class="list-item">
    First element
    <ol class="sub-list">
      <li class="sublist-item">First element</li>
      <li class="sublist-item">First element</li>
    </ol>
  </li>
  <li class="list-item">Second element</li>
  <li class="list-item">Third element</li>
</ol>

Unordered Lists

  • First element
    • First element
    • First element
  • Second element
  • Third element
<ul class="list list-unordered">
  <li class="list-item">
    First element
    <ul class="sub-list">
      <li class="sublist-item">First element</li>
      <li class="sublist-item">First element</li>
    </ul>
  </li>
  <li class="list-item">Second element</li>
  <li class="list-item">Third element</li>
</ul>

Inline Lists

  • First element
  • Second element
  • Third element
<ul class="list list-inline">
  <li class="list-item">First element</li>
  <li class="list-item">Second element</li>
  <li class="list-item">Third element</li>
</ul>