Simon Willison’s Weblog

Subscribe

Saturday, 23rd May 2026

Sighting 11:41 AM — Western Fence Lizard, in Sonoma County, US, CA
Western Fence Lizard
Western Fence Lizard

On the <dl> (via) I learned a few new-to-me things about the <dl> element from this article by Ben Meyer:

  1. A <dt> can be followed by multiple <dd>
  2. You can optionally group the <dt> and <dd> elements in a <div> for styling - but only a <div>.
  3. You can label them using ARIA.
  4. They've been called "description lists", not "definition lists", since an HTML5 draft in 2008.

So this is valid:

<h2 id="credits">Credits</h2>
<dl aria-labelledby="credits">
  <div>
    <dt>Author</dt>
    <dd>Jeffrey Zeldman</dd>
    <dd>Ethan Marcotte</dd>
  </div>
</dl>

Here's a useful note from Adrian Roselli on screen reader support for description lists.

# 8:24 pm / css, html, screen-readers, web-standards

Friday, 22nd May 2026

2026 » May

MTWTFSS
    123
45678910
11121314151617
18192021222324
25262728293031