WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: using role="columnheader" instead of <th>

for

From: glen walker
Date: Oct 26, 2021 11:18PM


As I said originally, we can't change the elements.
Scope attribute is only valid on <th>, not <td>
I've tested it with screen readers so it appears ok. It just feels weird so
I was tossing it out there. I suspect it'll work just fine.

On Tue, Oct 26, 2021 at 10:59 PM David Engebretson Jr. <
<EMAIL REMOVED> > wrote:

> First, why can't you change the top row to be a TH?
>
> Also, can't you use the scope attribute? (
> https://www.w3resource.com/html/attributes/html-scope-attribute.php)
>
> Second, do you have a sample you can provide so that us native screen
> reader users can take a peek?
>
> Thanks!
>
>
>