Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
draft_date: 2024-06-05
name: <dd>
description: The `<dd>` element TODO.
name: Description list
description: Elements to represent a description list.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: Elements to represent a description list.
description: The `<dl>`, `<dt>`, and `<dd>` elements create a list of terms and their associated descriptions. Use a description list to to create glossaries or other similar key-value pair lists.

Just a suggestion to make it more straightforward to understand. Not completely set on it though.

One more thing to consider: accessibility doesn't seem to be the best with DL. See https://adrianroselli.com/2022/12/brief-note-on-description-list-support.html and https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl#accessibility
In particular, it looks like keyboard navigation isn't supported everywhere.

Baseline currently doesn't cover assistive tech (see https://github.com/web-platform-dx/web-features/blob/main/docs/baseline.md#non-goals) so this is probably fine as is, but it might be good to do a bit of research for a11y best practices with DL and add a short mention of this in the description.

spec:
- https://html.spec.whatwg.org/multipage/grouping-content.html#the-dd-element
- https://html.spec.whatwg.org/multipage/grouping-content.html#the-dl-element
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated from: dd.yml
# Generated from: description-list.yml
# Do not edit this file by hand. Edit the source file instead!

status:
Expand Down