Picto thématique

Rule n° 240 - Data tables are not simulated through styled text

To set up a table in a web page, there are specific tags. It is also possible to visually simulate tables by inserting spaces between data. This last solution is to be avoided at all costs.

#Accessibility #Development #SEO #Structure and code

Goal

  • Give users access to tables that are exploitable by their user agents and that can be reproduced in a way that will always be understandable.
  • Improve the accessibility of content for people with disabilities.

Implementation

Systematically use the table element and the associated elements tr, td, th, caption, to tag data tables, and not artifices based on accumulations of non-breaking spaces or graphic characters such as pipes (vertical lines "|").

_ x000D_

Find out more:

Control

For each content displayed as a data table (i.e. associating data cells with row or column headers):

  • Make sure it is tagged with the tr (row), td (data cell), th (row or column header) and caption (table title) HTML elements, for example using a developer tool.

By Opquast - Read the license


Discover Opquast training and certification

The objective of these rules and the Opquast community mission is ‘making the web better’ for your customers and for everyone! Opquast rules cover the key major areas of risk that can negatively affect website users such as privacy, ecodesign, accessibility and security.

Opquast training has already allowed over 19,000 web professionals to have their skills certified. Train your teams, contact us

We offer a 1 hour free discovery module.