WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Scope attributes vs ID and Headers attributes

for

From: Jonathan Avila
Date: Jun 1, 2017 9:20AM


> We have over 200 complex tables to remediate (for a US Government agency).
Some have two levels of column headers and one level of row headers

The two level ones can use scope. The key with using scope is that every cell within the scope of that header has that header applied. So if you have a row that acts like a column header for one group of rows and another row that acts like a column header for another group of rows then you have to use ids and headers. Obviously there are other choices such as splitting up the table, etc. -- but my assumption is that the table can't be changed. Scope works for many assistive technologies with spanned cells -- but again its scope applies to all cells within the scope row, column, etc.

Your 4 and 5 level example would need ids/headers.

Another question that some people have asked is can you mix headers/id and scope attributes. From reading the HTML specification it seems to indicate that the header for a data cell is calculated on a per cell basis. So for any given cell you can't mix them -- but in theory within a table it might be theoretically possible although I would not recommend mixing them.

Jonathan

Jonathan Avila
Chief Accessibility Officer
SSB BART Group 
<EMAIL REMOVED>
703.637.8957 (Office)
Visit us online: Website | Twitter | Facebook | LinkedIn | Blog
Download our CSUN Presentations Here!

The information contained in this transmission may be attorney privileged and/or confidential information intended for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is strictly prohibited.