Divya Manian

RSS Feed Youtube Channel Github

Being over enthusiastic about accessibility

Sometimes as an accessibility newbie, whenever I am “forced” to use tables for layout, I use these attributes “summary”, “headers”, “scope” considering them the necessary ingredients for an accessible layout. But reading the Techniques for WCAG 2.0, I realise that it is a mistake to do it that way.

From the technique description:

When a table is used for layout purposes the th element should not be used. Since the table is not presenting data there is no need to mark any cells as column or row headers.

Likewise, there is no need for an additional description of a table which is only used to layout content. Do not include a summary attribute and do not use the summary attribute to describe the table as, for instance, “layout table”. When spoken, this information does not provide value and will only distract users navigating the content via a screen reader. Empty summary attributes are acceptable on layout tables, but not recommended.

Be wise, and don’t use tables for layout if you can help it. But if you have no choice, then dont use the full suite of accessible tables because it will only hinder the navigation for those using screen readers.

Comments