List Overview
Overview
Lists of items on web resources should be represented by HTML markup that allows all users, including users with disabilities to easily move between items of a list and between lists themselves. Using ul, ol, and dl elements for defining list content ensures interoperability by making both graphical and non-graphical renderings of the lists accessible to all users, including users with disabilities.
Benefits to People with Disabilities
- Screen reader users can easily identify the content of a list item and move between list items.
- Screen reader users can easily move between lists on the web resource.
Benefits to All Users
- Web resources will be more usable since lists are rendered consistently.
- Lists are more accessible to users on a wider range of technologies.
Benefits to Developers
- Markup of lists will be more consistent and thus styling them consistently across web resources is easier using CSS.
- The more web developers separate structure from styling the eaiser it is for them to create new resources and update existing resources.
- Web pages that use structural markup will be usable on a wider range of technologies.
Related Resources
HTML Markup Details
ul element with lielement- The
ulandlielements can be used to create unordered lists of information. - The default rendering of an unordered list uses a solid black circle as the bullet for each item; this default can be modified to a variety of shapes including discs, circles and squares using the CSS
list-styleproperty. - Custom bullets can be defined using the CSS
background-imageproperty or the CSSlist-style-imageproperty. See more detailed description of these properties. ol element with lielement- The
olandlielements can be used to create ordered lists of information. - The default numbering of items in an ordered list uses decimal numbers starting from one (1).
- The numbering style and current list number can be changed using the CSS
list-style-typeproperty. Possible values includedecimal-leading-zero,lower-roman,upper-roman,lower-greek,lower-latin,upper-latin,armenian,georgianornone. ol:startelement- The
valueattribute can be used to set the starting number for an ordered list. li:valueelement- The
valueattribute can be used to set the number for the currentlielement. dl element with DT and ddelement- The
dlelement can be used to create lists of definitions. - The
dtelement is used to itemize each term to be defined. One or moreddelements follow eachdtelement and provide definitions for the term.
CSS Properties
list-style-type- The CSS
list-style-typeproperty is used to change the default rendering of bullets and numbering of ordered (ol) and unordered lists (ul). background-image- The CSS
background-imageproperty can be used onlielements of unordered lists to create custom bullet images. - This is much better than using the
imgelement in the HTML code since there is no need to definealttext for the image, and updating the image can be done easily through modifying the CSS rather than direct editing of the HTML code. - This is also more flexible than the
list-style-imageproperty since it provides an option to vertically center the image. list-style-image- The CSS
list-style-imageproperty is similar to thebackground-imageproperty, but provides less control over the vertical positioning of the bullet image. The vertical position is fixed by current browsers, i.e. Internet Explorer, Mozilla/Firefox and Opera, to the value "top" which often makes the bullet image appear offset.
Related Accessibility Requirements
- Illinois Information Technology Accessibility Standards
- 1.5 Use lists to identify series of related items, including navigation menus.
- Section 508
- none
- W3C Web Content Accessibility Guidelines 2.0
- 1.3.1 Info and Relationships
- 1.3.2 Meaningful Sequence
- Web Content Accessibility Guidelines (WCAG 1.0)
- 3.6 Mark up lists and list items properly. [Priority 2]
- 13.8 Place distinguishing information at the beginning of headings, paragraphs, lists, etc. [Priority 3]
