HTML Lists Cheat Sheet

Unordered List (bulleted list):

<ul>
<li>Foo</li>
<li>Bar</li>
<li>Baz</li>
<li>Quux</li>
</ul>
  • Foo
  • Bar
  • Baz
  • Quux



Ordered List (numbered list):

<ol>
<li>Foo</li>
<li>Bar</li>
<li>Baz</li>
<li>Quux</li>
</ol>
  1. Foo
  2. Bar
  3. Baz
  4. Quux



Ordered List (Capital letters):

<ol type=A>
<li>Foo</li>
<li>Bar</li>
<li>Baz</li>
<li>Quux</li>
</ol>
  1. Foo
  2. Bar
  3. Baz
  4. Quux



Ordered List (Lower case letters):

<ol type=a>
<li>Foo</li>
<li>Bar</li>
<li>Baz</li>
<li>Quux</li>
</ol>
  1. Foo
  2. Bar
  3. Baz
  4. Quux



Ordered List (Capital roman numerals):

<ol type=I>
<li>Foo</li>
<li>Bar</li>
<li>Baz</li>
<li>Quux</li>
</ol>
  1. Foo
  2. Bar
  3. Baz
  4. Quux



Ordered List (Lower case roman numerals):

<ol type=i>
<li>Foo</li>
<li>Bar</li>
<li>Baz</li>
<li>Quux</li>
</ol>
  1. Foo
  2. Bar
  3. Baz
  4. Quux



Ordered List (Starting at a higher number):

<ol start=13>
<li>Foo</li>
<li>Bar</li>

<li>Baz</li>
<li>Quux</li>
</ol>
  1. Foo
  2. Bar
  3. Baz
  4. Quux



Lists within lists:

<ul>
<li>Open Source
   <ul>
   <li>Linux
      <ul>
      <li>Ubuntu</li>
         <ul>
         <li>Kubuntu</li>
         <li>Edubuntu</li>
         <li>xubuntu</li>
         </ul>
      <li>Fedora</li>
      <li>Debian</li>
      <li>Mandriva</li>
      <li>Gentoo</li>
      </ul>
   </li>
   <li>Berkeley Software Distribution
   <ul>
   <li>FreeBSD</li>
   <li>OpenBSD</li>
   <li>NetBSD</li>
   </ul>
   </li>
   </ul>
</li>
<li>Evil
   <ul>
   <li>Windows</li>
      <ul>
      <li>Windows 3.1</li>
      <li>Windows 2000</li>
      <li>Windows XP</li>
      <li>Windows Vista</li>
      </ul>
   </ul>
</li>
</ul>
  • Open Source
    • Linux
      • Ubuntu
        • Kubuntu
        • Edubuntu
        • xubuntu
      • Fedora
      • Debian
      • Mandriva
      • Gentoo
    • Berkeley Software Distribution
      • FreeBSD
      • OpenBSD
      • NetBSD
  • Evil
    • Windows
      • Windows 3.1
      • Windows 2000
      • Windows XP
      • Windows Vista