- 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>.
Did you know that you can subscribe to dai11y, week11y, fortnight11y or 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.