WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Another rookie question: tables that use a heading rather than a caption

for

From: Birkir R. Gunnarsson
Date: Mar 29, 2017 1:29PM


Hi

No, a heading is fine.
As a best practice, add an accessible name to the table that
duplicates the heading text.
e.g.
<h3 id="mg">My grades</h3>
<table aria-labelledby="mg">
...
</table>

or
<table aria-label="My Grades">
...
</table>

Either way, you give the table an accessible name that matches the
heading above it. This way users can find the table either via
navigation by headings or by tables, they can identify the table
regardless of the method.
Again, this is not a mustfor accessibility compliance, but it maeks
for good assistive technology user experience.

accessible


On 3/29/17, Jeremy Echols < <EMAIL REMOVED> > wrote:
> We have a lot of tables which (I think) make sense to be under a heading (as
> in the "h2" or "h3" elements). Should we also have a caption for these
> tables? Should we use a caption instead of a heading?
> > > > >


--
Work hard. Have fun. Make history.