Skip to content

Instantly share code, notes, and snippets.

@mikebranski
Created September 19, 2011 15:08
Show Gist options
  • Save mikebranski/1226710 to your computer and use it in GitHub Desktop.
Save mikebranski/1226710 to your computer and use it in GitHub Desktop.
Nested HTML Lists
<!-- INCORRECT -->
<ul>
<li>First bulleted item</li>
<li>Second bulleted item</li>
<ol>
<li>First nested number</li>
</ol>
</ul>
<!-- CORRECT -->
<ul> <!-- ul is the parent element -->
<li>First bulleted item</li>
<li> <!-- li is a direct child of ul -->
Second bulleted item
<ol> <!-- ol is a direct child of li, which is a direct child of ul -->
<li>First nested number</li>
</ol>
</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment