digestweb.dev
Propose a News Source
Support usSponsor
🤝
Curated byFRSOURCE

digestweb.dev

Your essential dose of webdev and AI news, handpicked.

Advertisement

Want to reach web developers daily?

Advertise with us ↗

Back to Daily Feed

Demystifying the HTML <dl> Element

Must Read

Originally published on Simon Willison's Weblog by Simon Willison

View Original Article
Share this article:
Demystifying the HTML <dl> Element

Summary & Key Takeaways ​

The <dl> element is designed for associating names with values, not exclusively for definitions. It is ideal for metadata, dialogue transcripts, and other structured content where items have descriptive values. The <dt> element represents the 'name' or 'term', and <dd> represents the 'value' or 'description'. Multiple <dt> elements can be associated with a single <dd>, and a single <dt> can have multiple <dd>s. Proper semantic use of <dl> significantly improves accessibility and machine readability of content. CSS can be effectively used to style <dl> elements to achieve various layout presentations.

Our Commentary ​

I've always had a soft spot for the <dl> element, but I admit I often default to <ul> or <div> for lists that aren't strictly definitions. Simon's piece is a great reminder of its power. We often forget how much semantic richness HTML offers beyond the basics. There's something unsettling about how quickly we reach for generic divs when a more specific, meaningful tag exists. This makes me want to audit some of our older components. It's a good nudge for better web hygiene.

View Original Article
Share this article:
RSS Atom JSON Feed
© 2026 digestweb.dev — brought to you by  FRSOURCE