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 trialAkshat Kedia
11,107 PointsIsn'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
7,609 PointsIt 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 :-)
Amy Drayer
755 PointsThe 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/
Akshat Kedia
11,107 PointsAkshat Kedia
11,107 PointsBut the caption tag should cater to both, right ?
Kris Phelps
7,609 PointsKris Phelps
7,609 PointsThe 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
Marcus Parsons
15,719 PointsMarcus Parsons
15,719 PointsMarked as best answer