E-mail List Archives
Re: thead th and scope="col" and "row"
From: glen walker
Date: Aug 18, 2021 2:38PM
- Next message: Birkir R. Gunnarsson: "Re: Safari Voice Over: Empty Groups"
- Previous message: glen walker: "Re: Should there be persistent visible text labels for search buttons or burger menu buttons?"
- Next message in Thread: None
- Previous message in Thread: Birkir R. Gunnarsson: "Re: thead th and scope="col" and "row""
- View all messages in this Thread
You never know when the code is going to be changed and if some adds a row
or column before the cells you were relying being a header cell, so I
always specify scope even if it's on the first row or first column. It
makes the code easier to read too.
On Tue, Aug 17, 2021 at 5:31 PM Birkir R. Gunnarsson <
<EMAIL REMOVED> > wrote:
> Here is the HTML5 spec:
> https://www.w3.org/TR/2014/REC-html5-20141028/tabular-data.html
> (look for the definition of how browsers handle scope="auto" i.e. no
> scope attribute).
> The formula is not coded accessibly so I can't be 100% sure but my
> understanding is that the auto scope attribute will affect all cells
> below the header cell (if it is a column) or to the right of the
> header cell (if it is a row).
> If you have a cell that is not in the first row or first column you
> should always explicitly define the scope of the cell, else you could
> end up with incorrect or at least inconsistent results.
>
>
> On 8/17/21, Schulz, Leslie via WebAIM-Forum
> < <EMAIL REMOVED> > wrote:
> > Thank you for your helpful replies.
> >
> > I will look into the HTML5 specifications.
> >
> > I also appreciate this link
> > https://www.w3.org/WAI/tutorials/tables/one-header/ from Jon Avila.
> >
> > W3C does offer examples of not using the scope attribute in simple
> tables.
> >
> > Thank you all for your help!
> >
> > Leslie
> >
>
- Next message: Birkir R. Gunnarsson: "Re: Safari Voice Over: Empty Groups"
- Previous message: glen walker: "Re: Should there be persistent visible text labels for search buttons or burger menu buttons?"
- Next message in Thread: None
- Previous message in Thread: Birkir R. Gunnarsson: "Re: thead th and scope="col" and "row""
- View all messages in this Thread