Frequently Asked Questions

What is the "Proper" way to make HTML nested list?
Option 1: the nested <ul> is a child of the parent <ul>
<ul>
    <li>List item one</li>
    <li>List item two with subitems:</li>
         <ul>
           <li>Subitem 1</li>
           <li>Subitem 2</li>
        </ul>
  <li>Final list item</li>
</ul>



Option 2: the nested <ul> is a child of the <li> it belongs in

<ul>
   <li>List item one</li>
   <li>List item two with subitems:
     <ul>
       <li>Subitem 1</li>
       <li>Subitem 2</li>
</ul>
  </li>
     <li>Final list item</li>
</ul>




 Last updated 09/17/2021 12:27 am

Please Wait!

Please wait... it will take a second!