WebAIM - Web Accessibility In Mind

E-mail List Archives

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


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


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

<table aria-label="My Grades">

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.


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.