List: Nested

List can be nested (lists inside lists). The markers automatically change with each level of nesting:

HTML file: Displayed by browser:
<ul>
  <li>Coffee</li>
  <li>Tea
    <ul>
      <li>Black tea</li>
      <li>Green tea</li>
    </ul>
  </li>
  <li>Milk</li>
</ul>
  • Coffee
  • Tea
    • Black tea
    • Green tea
  • Milk

List items can contain other HTML elements, like images and links, etc.

Back button Table of Contents Next button