Re: Alt text on HTML tables

Subject: Re: Alt text on HTML tables
From: Peter Neilson <neilson -at- windstream -dot- net>
To: techwr-l -at- lists -dot- techwr-l -dot- com
Date: Fri, 28 Apr 2023 22:02:58 -0400

Alt text is an attribute of images. The purpose is to provide a description of the image for those who cannot see it. Images ("img") are the only elements that support the alt text attribute.

In the case specified it would probably be best to render the table as an image in which the unimportant parts are grayed out, with the alt text describing the image that shows the table. An actual table (with cell content such as etaoin shrdlu, lorem ipsum or similar nonsense) might appear after the table image.


On 4/28/23 20:43, Robert Lauriston wrote:

You could put a small blank image in the table, though if the contents of
the cells aren't useful, is a table really the right way to present this
information?

On Fri, Apr 28, 2023 at 1:18âPM<dick -at- rlhamilton -dot- net> wrote:

Is there a way to add alt text to a table?

The alt attribute is not allowed on table, and I donât see a good
alternative.

I know that screen readers can read tables, but in this use case, the
column and row labels are the only information of interest (the contents of
the cells are examples that donât add any value).

Iâd like to able to add alt text that a screen reader would provide first,
so the user could choose to skip the table itself. The alt text would
identify the rows and columns and then state that the cell data are samples
and donât need to be read.

Any thoughts on how best to do this?s @http://techwr-l.com/archives

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Visit TechWhirl for the latest on content technology, content strategy and content development | https://techwhirl.com

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-
To unsubscribe send a blank email to
techwr-l-leave -at- lists -dot- techwr-l -dot- com


Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
http://www.techwhirl.com/email-discussion-groups/ for more resources and info.

Looking for articles on Technical Communications? Head over to our online magazine at http://techwhirl.com

Looking for the archived Techwr-l email discussions? Search our public email archives @ http://techwr-l.com/archives

Follow-Ups:

References:
Alt text on HTML tables: From: dick

Previous by Author: Re: Alt text on HTML tables
Previous by Thread: Re: Alt text on HTML tables
Next by Thread: Re: Alt text on HTML tables


What this post helpful? Share it with friends and colleagues:


Sponsored Ads