RE: Good practice options for introducing videos and tables

That's perfect, thanks Marc.

Thanks for the ideas on the video side! I was reading up about visually hiding content earlier today.

I don't think we would use dt dl in this instance, but it's good to know that we don't necessarily need a caption too.

With kind regards
Louise

From: Marc Haunschild <haunschild@mhis.onmicrosoft.de>
Sent: 19 March 2021 16:40
To: Louise Lister <Louise.Lister@iop.org>
Cc: w3c-wai-ig@w3.org
Subject: Re: Good practice options for introducing videos and tables

Hi Louise,

For the button: use something like this inside of the button-Element in addition to the graphic:

<span class="visually-hidden">Play/ Pause video</span>

Do you know how to hide content visually?

In an ideal world you would use JS to show only "Play" or "Pause" but in the real world every screenreader user should understand a button with a text like this

About your table: I'm not sure what you want. If there is jaust to columns it looks like a layout table to me and you don't need any semantics at all

Something like this is completely understandable:

Director: Peter
Actress: Naomi
Coder: Marc

If you want to add semantics I'd rather use dl with dt/dt instead...

Marc




Am 19.03.2021 um 15:48 schrieb Louise Lister <Louise.Lister@iop.org<mailto:Louise.Lister@iop.org>>:



Hello all,

I hope someone can help. Got a couple of questions about the way we introduce videos and data tables on webpages.

Introducing videos
We have some videos on our website that do not any introductory text. The HTML looks like this:

<drupal-entity data-embed-button="video_remote_" data-entity-embed-display="view_mode:media.full" data-entity-type="media" data-entity-uuid=""></drupal-entity>

When running NVDA over the page and tabbing through the content, it will clearly state there is a "button", but unless you see the button in context, you may not know what it does.

My thinking is that the best way to get around this is to also use content to introduce it in this way: "Watch the video below to find out how to ...", and/or change the alt text for the button graphic , if that's possible, to "A video is playable here". Or is there a cleverer way that I am not aware of?

Introducing tables
We also have some tables that are simple but don't use a caption tag (the tag needs a tweak to make it look 'okay' before we use it). Instead, we often use headings instead. It sounds okay in NVDA to me, but should we be using captions as the rule? Here's what the HTML could look like:

<h2>Committee</h2>
<table dir="ltr">
              <tbody>
                             <tr>
                                           <th scope="row">Role</th>
                                           <td>Person's name</td>
                             </tr>
                             <tr>
                                           <th scope="row">Role</th>
                                           <td>Person's name</td>
                             </tr>
              </tbody>
</table>

Thanks, I appreciate this is probably basic stuff, just hoped for some thoughts on the above.

Louise


________________________________
This email (and attachments) are confidential and intended for the addressee(s) only. If you are not the intended recipient please immediately notify the sender, permanently and securely delete any copies and do not take action with it or in reliance on it. Any views expressed are the author's and do not represent those of IOP, except where specifically stated. IOP takes reasonable precautions to protect against viruses but accepts no responsibility for loss or damage arising from virus infection. For the protection of IOP's systems and staff emails are scanned automatically..

Institute of Physics. Registered charity no. 293851 (England & Wales) and SCO40092 (Scotland)
Registered Office:  37 Caledonian Road, London, N1 9BU<https://gbr01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgoo.gl%2Fmaps%2FDUHbKcbzuUN2&data=04%7C01%7Clouise.lister%40iop.org%7Ce1dcc0c5846d42ccbf5e08d8eaf5c679%7C8b8986af18bb4882a149fa5a3dd1f995%7C0%7C0%7C637517688603265683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=cvJz%2BQSzmeOwEuB44sa1QGO7O0twlLDzu5NbuRKLzBE%3D&reserved=0>

Your privacy is important to us. For information about how IOP uses your personal data, please see our Privacy Policy<https://gbr01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.iop.org%2Fprivacy%2Findex.html&data=04%7C01%7Clouise.lister%40iop.org%7Ce1dcc0c5846d42ccbf5e08d8eaf5c679%7C8b8986af18bb4882a149fa5a3dd1f995%7C0%7C0%7C637517688603275681%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Qg%2BHNP1KG39szHI66keCA%2BzdSDzmfJxdoMitwLNGGIw%3D&reserved=0>

This email (and attachments) are confidential and intended for the addressee(s) only. If you are not the intended recipient please notify the sender, 
delete any copies and do not take action in reliance on it. Any views expressed are the author's and do not represent those of IOP, except where specifically 
stated. IOP takes reasonable precautions to protect against viruses but accepts no responsibility for loss or damage arising from virus infection. 
For the protection of IOP's systems and staff emails are scanned automatically. 

Institute of Physics. Registered charity no. 293851 (England & Wales) and SCO40092 (Scotland)
Registered Office:  37 Caledonian Road, London, N1 9BU  

Received on Friday, 19 March 2021 16:46:36 UTC