Definition List Structure
Checks that definition lists contain only dt and dd elements
Checks that definition lists contain only dt and dd elements
| Rule ID | a11y/definition-list |
| Category | Accessibility |
| Scope | Per-page |
| Severity | error |
| Weight | 7/10 |
Solution
Definition lists (<dl>) should only contain <dt> (term) and <dd> (description) elements as direct children. Optionally, they can be wrapped in <div> for styling. Do not put other elements like <p>, <span>, or <li> directly inside <dl>.
Enable / Disable
Disable this rule
squirrel.toml
toml[rules]
disable = ["a11y/definition-list"]Disable all Accessibility rules
squirrel.toml
toml[rules]
disable = ["a11y/*"]Enable only this rule
squirrel.toml
toml[rules]
enable = ["a11y/definition-list"]
disable = ["*"]