Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make table caption a sibling of the table tag #107

Open
pcraig3 opened this issue Dec 11, 2024 · 0 comments
Open

Make table caption a sibling of the table tag #107

pcraig3 opened this issue Dec 11, 2024 · 0 comments
Labels
A11y This is an accessibility-related issue.

Comments

@pcraig3
Copy link
Collaborator

pcraig3 commented Dec 11, 2024

The table caption tag needs to be moved up to a sibling of the Table tag

before after
Caption element inside table No caption element, just a paragraph before the table
Image Image

Note: not clear that this is 100% what we should do.

The HTML <caption> should always be the first child of a table: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption

Similarly, it seems like there is guidance out there that <Caption> should be the first child of a <Table> in a PDF: https://community.adobe.com/t5/acrobat-discussions/lt-caption-gt-and-lt-table-gt-tag/m-p/9907424

@pcraig3 pcraig3 added the A11y This is an accessibility-related issue. label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A11y This is an accessibility-related issue.
Projects
None yet
Development

No branches or pull requests

1 participant