Element

table

Error Type

Likely

Guidelines

Requirement

All data table summaries are greater than 10 printable characters (English).

Error

Data table summary is less than 10 characters.

Short Description

table element, summary attribute value must be greater than 10 characters (English) if it's a data table.

How To Determine

Question Is this short table summary adequate to describe the table's purpose?
PASS Short summary is OK.
FAIL Short summary is not OK.

Steps To Check

Procedure

1. For all data tables, check the summary attribute of table element and determine its length.
2. Note: This table has been identified as a data table because it contains th elements. If this is a layout table then remove the th elements from the table.

Expected Result

1. All data table summaries are greater than 10 printable characters (English).

Failed Result

1. Modify the summary attribute value of the table element so it describes the purpose and structure of the table.

Examples

Pass Examples

Data table with valid summary (greater than 10 characters).
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" />
<title>ATRC Testfile - Check #113-2 - Positive</title>
</head>
<body>

<table border="1" summary="This table shows the number of cups of coffee consumed by each senator, the type of coffee (decaf or regular), and whether taken with sugar.">

<tr><th>name</th><th>number of cups</th><th>type</th><th>with sugar</th></tr>
<tr><td>Adams, Willie</td><td>2</td><td>regular</td><td>sugar</td></tr>
<tr><td>Bacon, Lise</td><td>4</td><td>regular</td><td>no sugar</td></tr>
<tr><td>Chaput, Maria</td><td>1</td><td>decaf</td><td>sugar</td></tr>
<tr><td>Di Nino, Consiglio</td><td>0</td><td>not applicable</td><td>not applicable</td></tr>
<tr><td>Eggleton, Art</td><td>6</td><td>regular</td><td>no sugar</td></tr>
</table>

</body>
</html>

Fail Examples

Data table with short summary (less than 10 characters).
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" />
<title>ATRC Testfile - Check #113-1 - Positive</title>
</head>
<body>

<table border="1" summary="coffee">

<tr><th>name</th><th>number of cups</th><th>type</th><th>with sugar</th></tr>
<tr><td>Adams, Willie</td><td>2</td><td>regular</td><td>sugar</td></tr>
<tr><td>Bacon, Lise</td><td>4</td><td>regular</td><td>no sugar</td></tr>
<tr><td>Chaput, Maria</td><td>1</td><td>decaf</td><td>sugar</td></tr>
<tr><td>Di Nino, Consiglio</td><td>0</td><td>not applicable</td><td>not applicable</td></tr>
<tr><td>Eggleton, Art</td><td>6</td><td>regular</td><td>no sugar</td></tr>
</table>

</body>
</html>
Web site engine's code is copyright © 2023
Inclusive Design Institute