WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Using the Summary attribute in tables


From: Geethavani.Shamanna
Date: Jul 20, 2022 11:33AM

Hi Glen,

The Caption attribute is already being used in tables. However, if the table description is a couple of sentences or a paragraph long, where does that go? Was the Summary attribute replaced with another one in HTML 5?

-----Original Message-----
From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of glen walker
Sent: 20 July 2022 18:02
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: Re: [WebAIM] Using the Summary attribute in tables

CAUTION: This mail comes from outside the University. Please consider this before opening attachments, clicking links, or acting on the content.

Correct, the summary attribute was deprecated in HTML 5. Instead you should use the <caption> element inside a <table>.

Most (all?) screen readers use the caption as the accessible name of the table so that if I navigate using the T shortcut key, the caption will be read.

On Wed, Jul 20, 2022 at 10:14 AM Geethavani.Shamanna < <EMAIL REMOVED> > wrote:

> Hello all,
> I recently came across a WAI tutorial on tables recommending the use
> of the Summary attribute to include table description. Is the Summary
> attribute still in use? If it has been deprecated, what is the best
> alternative to add table descriptions?
> Adding a description via a heading above or below the table won't be
> very useful as it won't be directly associated with the table.
> Many thanks.
> Geetha
> > > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flist.
> webaim.org%2F&amp;data%7C01%7Cgeethavani.shamanna%40open.ac.uk%7Cda
> 6cb859a1b24d34e3f708da6a71a4a6%7C0e2ed45596af4100bed3a8e5fd981685%7C0%
> 7C0%7C637939333571093154%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiL
> CJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdat
> aqBeFDvSMvycW4%2ByNMllMzBb8f%2BTgMuoIfNfPHkxoXY%3D&amp;reserved=0
> List archives at
> https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwebai
> m.org%2Fdiscussion%2Farchives&amp;data%7C01%7Cgeethavani.shamanna%4
> 0open.ac.uk%7Cda6cb859a1b24d34e3f708da6a71a4a6%7C0e2ed45596af4100bed3a
> 8e5fd981685%7C0%7C0%7C637939333571093154%7CUnknown%7CTWFpbGZsb3d8eyJWI
> joiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7
> C%7C%7C&amp;sdata=%2FzAxg7UgxfMZcZRlYh3vEbpEQkW0Q8bhKBF7B4eQn8w%3D&amp
> ;reserved=0 >