Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML Accessibility Web Apps Tables

Akshat Kedia
Akshat Kedia
11,107 Points

Isn't adding both Caption and Summary to the table introducing redundancy ?

Can someone explain why is summary attribute needed when we are already adding a caption tag. Won't that introduce redundancy and won't the screen reader read the same information twice ?

2 Answers

Kris Phelps
Kris Phelps
7,609 Points

It is a bit redundant, but you're catering to two different groups of people. Those with ordinary vision and those with visual impairment.

The summary attribute is specifically for people with visual impairment. In general, it should contain different information than what is in the caption tag. The W3C gives the example of a bus schedule.

The caption identifies the bus route, but the summary explains how the schedule can be used. I hope this helps :-)

http://www.w3.org/TR/WCAG20-TECHS/H73.html

Akshat Kedia
Akshat Kedia
11,107 Points

But the caption tag should cater to both, right ?

Kris Phelps
Kris Phelps
7,609 Points

The summary attribute is specifically for people with visual impairment. In general, it should contain different information than what is in the caption tag. The W3C gives the example of a bus schedule.

The caption identifies the bus route, but the summary explains how the schedule can be used. I hope this helps :-)

http://www.w3.org/TR/WCAG20-TECHS/H73.html

Marked as best answer

The summary attribute is deprecated in HTML5, so it's best to not use it. Here are some much better tutorials on good usage of available captioning methods for tables and accessibility: http://www.w3.org/WAI/tutorials/tables/caption-summary/