Generating accessible HTML
- Date: 13 October 2022
- Time: 6:30 to 8:30pm (UK Time)
Jonathan Fine: On Thursday I’ll report on some accessibility investigations. I’d like to see a general purpose tool that writes accessible HTML. I might have to write it myself, but I hope not.
My starting point will be looking at examples of accessible pages and understanding their underlying HTML. I hope this will help me understand what’s needed in the HTML, to make it accessible.
A tool that writes simple accessible tables and which is extensible would be an interesting intermediate goal. Small enough to be practical, large enough to show difficulties, and common enough to be important. Perhaps such a tool already exists, and perhaps I can find it.
Some sites and underlying HTML
I look at some of the recommended accessible web sites, from URLs
listed later. And then I did Ctrl-U to View Source
and poked around
for interesting snippets. More of this sort of work is required, to
have an adequate idea of what’s being done to provide
accessibility. And to have some sense of the technical context in which
accessibility is being provided.
Scope
https://www.scope.org.uk/ is a UK charity whose purpose is equality for disabled people.
<button class="btn purple cookie-popup__allow"
type="button"
aria-label="Accept all"
>Accept all </button>
<div class="accordion__item--body">
<div class="accordion__item--content rte"
aria-labelledby="Functional Cookies"
>
<p>Functional cookies improve your experience [...]
UK Government
https://www.gov.uk/ is the citizen facing UK government website.
<button aria-controls="super-navigation-menu" aria-expanded="true"
aria-label="Hide navigation menu"
class="gem-c-layout-super-navigation-header__navigation-top-toggle-button"
data-text-for-hide="Hide navigation menu" data-text-for-show="Show
navigation menu" data-toggle-desktop-group="hidden"
data-toggle-mobile-group="top" data-tracking-key="menu" hidden
id="super-navigation-menu-toggle" type="button"> <span
class="gem-c-layout-super-navigation-header__navigation-top-toggle-button-inner">
Menu
</span>
</button>
Patagonia
https://www.patagonia.com/home/ sells outdoor clothing and other gear.
<form role="search" action="/search/" method="get" name="simpleSearch">
<input class="search-field field-search__input form-control"
type="search" name="q" value="" placeholder="What are you looking
for?" autocomplete="off" aria-label="Search (keywords,etc)" />
<button type="submit" class="btn btn-dark search-submit disabled"
disabled="true">Submit</button>
<div class="suggestions-wrapper"
data-url="/on/demandware.store/Sites-patagonia-us-Site/en_US/SearchServices-GetSuggestions?q=">
</div>
<input type="hidden" value="null" name="lang">
</form>
W3C multi-level tables
https://www.w3.org/WAI/tutorials/tables/multi-level/
Here is a fragment of a table on holiday accomodation in Paris and Rome (and perhaps many other holiday destinations).
<tr>
<th id="rbed1" headers="rome">1 bedroom</th>
<td headers="rome rbed1 stud">13</td>
<td headers="rome rbed1 apt">21</td>
<td headers="rome rbed1 chal">22</td>
<td headers="rome rbed1 villa">3</td>
</tr>
Here rome
and the other headers
information relates to the
content of the table. It is quite different from the class
attribute of a tag.
Search: example accessible website
- https://www.google.com/search?q=example+accessible+website
- https://inviqa.com/blog/web-accessibility-examples-5-sites-doing-it-right
- https://blog.hubspot.com/website/accessible-website-examples
- https://www.dreamhost.com/blog/great-web-accessibility-examples/
- https://www.internetrix.com.au/blog/five-beautiful-and-accessible-websites-for-design-inspiration/
- https://www.w3.org/WAI/fundamentals/accessibility-intro/
Search: generating accessible html
- https://www.google.com/search?q=generating+accessible+html
- https://www.adobe.com/accessibility/create.html
- http://www.deaflibrary.org/accessibility.html
- https://developer.mozilla.org/en-US/docs/Learn/Accessibility/HTML
- https://www.w3schools.com/html/html_accessibility.asp
- https://webaccess.berkeley.edu/resources/tips/web-accessibility
Search: accessible html table example
- https://www.google.com/search?q=accessible+html+table+example
- https://www.w3.org/WAI/tutorials/tables/
- https://developer.mozilla.org/en-US/docs/Learn/HTML/Tables/Advanced
- https://webaim.org/techniques/tables/data
- https://a11y-101.com/development/tables
- https://racheleditullio.com/blog/2020/03/5-ways-to-improve-table-accessibility/
- https://accessibility.psu.edu/tableshtml/
- https://usability.yale.edu/web-accessibility/articles/tables
Search: generating accessible html table
- https://www.google.com/search?q=generating+accessible+html+table
- https://community.rstudio.com/t/create-accessible-html-tables-in-rstudio/46831
- https://usability.yale.edu/web-accessibility/articles/tables
- https://www.bls.gov/osmr/research-papers/2004/pdf/st040250.pdf
- https://www.adamwills.io/blog/accessible-tables/
- https://adamwills.github.io/csv-accessible-table/
- https://www.boia.org/blog/how-to-build-accessible-tables
- https://dev.to/lukekyl/3-steps-to-make-html-tables-web-accessible-3jjf
Search: site:.edu accessible html table
- https://www.google.com/search?q=site:.edu+accessible+html+table
- https://usability.yale.edu/web-accessibility/articles/tables
- https://accessibility.psu.edu/tableshtml/
- https://www.washington.edu/accessibility/websites/tables/
- https://webaccess.msu.edu/Tutorials/basics/table.html
- https://accessibility.18f.gov/tables/
- https://accessibility.umn.edu/what-you-can-do/start-7-core-skills/tables
- https://www.dallascollege.edu/about/accessibility/guidelines/pages/building-tables.aspx
- https://www.mtu.edu/accessibility/training/web/tables/
- https://accessibility.oregonstate.edu/tables
- https://fae.disability.illinois.edu/rulesets/TABLE_2/
- https://accessibility.asu.edu/articles/tables
- https://www.seattleu.edu/web/training/how-tos/articles/create-an-accessible-table.html
- https://digitalaccessibility.uoregon.edu/guidelines/tables
- https://www.brandeis.edu/web-accessibility/faculty-toolkit/best-practices/tables.html
- https://www.csun.edu/universal-design-center/web-accessibility-criteria-tables
Adam Wills HTML Table generator
This is most interesting. It seems to be entirely web browser based. One ‘uploads’ a CSV file but it seem that the generation of the accessible table is done entirely in the user’s web browser.
This innovation greatly reduces many obstacles to development, deployment and use of this tool. Interested? Get some CVS files and try it out here.
For more information about the TeX Hour, including Zoom URL, see the About page.