WebAIR

Have related links been grouped together (using an unordered list, ordered list or definition list)? (LNK21)

Why is this important?

HTML provides a number of elements that allow related items (including links) to be grouped together. For example, a list element (either ordered or unordered) can be used to group the items in a navigation menu. Similarly, definition lists can be used to group terms and their definitions. Grouping related links help provide a more cohesive user experience and aids navigation.

How to fix the problem

Wherever a group of links are related, use an appropriate element to group them together in the code. For example, use an unordered list element (<ul>) to group the links in a navigation menu (<li><a>).

Example

//Grouping links in a navigation menu using an unordered list

<ul role="navigation">

<li>Home</li>

<li>Contact</li>

<li><About Us</li>

<li><Directions</li>

</ul>

Further Information

  1. http://www.w3.org/community/webed/wiki/HTML_links_-_lets_build_a_web