USWDS-Site - Feature: Update guidance for table component caption #3100
Labels
Affects: Accessibility 🟡
Relates to the accessibility of our components
Is: New Guidance
A feature request for new guidance
Type: Feature Request
New functionality
Is your feature request related to a problem? Please describe.
Related to #6253 and #489
We should update the guidance on the table page to specify the importance of the
caption
element and its relationship to a table. It serves as the title of the table and we should encourage people to use the element in almost all cases.Current guidance on our table page:
Add title and attribution in a caption. When adding a title, attribution, or a last-updated date to a table, include it in the tag inside of the
element.Describe the solution you'd like
Draft proposed change:
Use a
caption
to describe the purpose of the table. When adding a title, attribution, or a last-updated date to a table, include it in thetable
element. Keep the caption wording short.Ensure sighted users are able to identify the caption as the title of the table. Make the caption style larger than the body style of the table text. Do not match an existing heading level or other style (such as an H2 or H3). Caption styles should be noticeable yet distinct.
Describe alternatives you've considered
No response
Additional context
Related research
Code of Conduct
The text was updated successfully, but these errors were encountered: