Your daily frequent11y newsletter, brought to you by @ChrisBAshton:
Tips for Making HTML Lists Accessible
- This article is a quick reminder on HTML list markup.
- First of all, decide whether you actually need a list; sometimes it is better to format your content as paragraphs with headings instead. This way, assistive technology users can easily skip to the heading that they want to read.
- If you do use a list, decide whether it should be unordered (
<ul>
), ordered (<ol>
) or a description list (<dl>
). The latter is useful for glossaries or recipes, e.g.<dl><dt>Chicken</dt><dd>A small bird that lays eggs</dd>...</dl>
.
Prefer longer newsletters? You can subscribe to week11y, fortnight11y or even month11y updates! Every newsletter gets the same content; it is your choice to have short, regular emails or longer, less frequent ones. Curated with ♥ by developer @ChrisBAshton.