Lists

List items use the <li> tag. List headers (titles) use the <lh> tag, but are optional.

Unordered Lists

    Unordered Lists:

  • use the <ul> tag
  • are bulleted
  • for when the order of items isn’t important
  • good for shopping lists
<ul>
<lh>Unordered Lists:</lh>
<li>use the <ul> tag</li>
<li>are bulleted</li>
<li>for when the order of items isn't important<li>
<li>good for shopping lists</li>
</ul>

Ordered Lists

    Ordered Lists:

  1. use the <ol> tag
  2. are numbered
  3. for when items are ranked or in a sequence
  4. good for recipes
<ol>
<lh>Ordered Lists:<lh>
<li>use the <ol> tag</li>
<li>are numbered</li>
<li>for when items are ranked or in a sequence</li>
<li>good for recipes</li>
</ol>

Definition Lists

Definition Term
Description of the definition
Definition List Tags
Definition lists don't use <li>; instead, they use <dt> for terms and <dd> for definitions.
<dl>
<dt>Definition Term</dt>
<dd>Description of the definition</dd>
<dt>Definition List Tags</dt>
<dd>Definition lists don't use <li>; instead, they use <dt> for terms and <dd> for definitions.</dd>
</dl>