Lists

Unordered List

  • List item 1
  • List item 2
  • List item 3
Code Example
<ul>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
</ul>

Ordered List

  1. List item 1
  2. List item 2
  3. List item 3
Code Example
<ol>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
</ol>

Definition List

first item
definition for first item in list
second item
definition for second item in list
extending across more than one line
third item
definition for third item in list
Code Example
<dl>
<dt>first item</dt>
<dd>definition for first item in list</dd>
<dt>second item</dt>
<dd>definition for second item in list<br />extending across more than one line</dd>
<dt>third item</dt>
<dd>definition for third item in list</dd>
</dl>

Nested List

  1. List item 1
    • List item 1
      • List item 1
      • List item 2
      • List item 3
    • List item 2
    • List item 3
  2. List item 2
  3. List item 3
Code Example
<ol>
<li>
	List item 1
	<ul>
	<li>
		List item 1
		<ul>
		<li>List item 1</li>
		<li>List item 2</li>
		<li>List item 3</li>
		</ul>
	</li>
	<li>List item 2</li>
	<li>List item 3</li>
	</ul>
</li>
<li>List item 2</li>
<li>List item 3</li>
</ol>