Techniques for WCAG 2.0

Skip to Content (Press Enter)


H48: Using ol, ul and dl for lists or groups of links



This technique relates to:

User Agent and Assistive Technology Support Notes

Assistive technologies include inconsistent support for various uses of the type attribute used to indicate numbering and bullet styles.


The objective of this technique is to create lists of related items using list elements appropriate for their purposes. The ol element is used when the list is ordered and the ul element is used when the list is unordered. Definition lists (dl) are used to group terms with their definitions. Although the use of this markup can make lists more readable, not all lists need markup. For instance, sentences that contain comma-separated lists may not need list markup.

When markup is used that visually formats items as a list but does not indicate the list relationship, users may have difficulty in navigating the information. An example of such visual formatting is including asterisks in the content at the beginning of each list item and using <br> elements to separate the list items.

Some assistive technologies allow users to navigate from list to list or item to item. Style sheets can be used to change the presentation of the lists while preserving their integrity.

The list structure (ul/ol) is also useful to group hyperlinks. When this is done, it helps screen reader users to navigate from the first item in a list to the end of the list or jump to the next list. This helps them to bypass groups of links if they choose to.


Example 1: A list showing steps in a sequence

This example uses an ordered list to show the sequence of steps in a process.

Example Code:

  <li>Mix eggs and milk in a bowl.</li>
  <li>Add salt and pepper.</li>

Example 2: A grocery list

This example shows an unordered list of items to buy at the store.

Example Code:


Example 3: A word and its definition

This example uses a definition list to group a definition with the term that is being defined.

Example Code:

  <dd>turn on and off between .5 and 3 times per second

Example 4: Using lists to group links

In this example the links are grouped using the ul and li elements.

Example Code:

<a name="categories" id="categories"></a><h2>Product Categories</h2>
<ul class="navigation">
    <li><p><a href="kitchen.html">Kitchen</a></p></li>
    <li><p><a href="bedbath.html">Bed &amp; Bath</a></p></li>
    <li><p><a href="dining.html">Fine Dining</a></p></li>
    <li><p><a href="lighting.html">Lighting</a></p></li>
    <li><p><a href="storage.html">Storage</a><li><p>

CSS can be used to style the list elements, so this technique can be used with a variety of visual appearances.

Here is a style that removes the list bullets and the left padding that creates the indent and flows the individual list elements horizontally.

Example Code:

ul.navigation {
  list-style: none; 
  padding: 0;
ul.navigation li {
  display: inline;

This style removes the list bullets and the left padding and displays the items in a floating block.

Example Code:

 ul.navigation {
 list-style: none; 
 padding: 0;
ul.navigation li {
 display: block; 
 float: left;


Resources are for information purposes only, no endorsement implied.



  1. Check that content that has the visual appearance of a list (with or without bullets) is marked as an unordered list.

  2. Check that content that has the visual appearance of a numbered list is marked as an ordered list.

  3. Check that content is marked as a definition list when terms and their definitions are presented in the form of a list.

Expected Results