In order to be accessible to visually impaired users, it is important that tables provides a description of its content before the data is accessed. The simplest way to do it, and also the one https://www.w3.org/TR/WCAG20-TECHS/H39[recommended by WCAG2] is to add a ``++++`` element inside the ``++++``. Other technics this rule accepts are: * adding a concise description via https://www.w3.org/TR/wai-aria/#aria-label[``++aria-label++``] or https://www.w3.org/TR/wai-aria/#aria-labelledby[``++aria-labelledby++``] attributes in the ``++
++``. * referencing a description element with an https://www.w3.org/TR/wai-aria/#aria-describedby[``++aria-describedby++``] attribute in the ``++
++``. * embedding the ``++
++`` inside a ``++
++`` which also contains a ``++
++``. * adding a ``++summary++`` attribute to the ``++
++`` tag. However note that this attribute has been deprecated in HTML5. See https://www.w3.org/WAI/tutorials/tables/tips/[W3C WAI Web Accessibility Tutorials] for more information. This rule raises an issue when a ``++
++`` has neither of the previously mentioned description mechanisms. == Noncompliant Code Example [source,html] ----
...
---- == Compliant Solution Adding a ``++
++`` element. [source,html] ---- ...
New York City Marathon Results 2013
---- Adding an ``++aria-describedby++`` attribute. [source,html] ----

New York City Marathon Results 2013

...
---- Embedding the table in a ``++
++`` which also contains a ``++
++``. [source,html] ----
New York City Marathon Results 2013
...
---- Adding a ``++summary++`` attribute. However note that this attribute has been deprecated in HTML5. [source,html] ---- ...
---- == Exceptions No issue will be raised on ``++++`` used for layout purpose, i.e. when it contains a ``++role++`` attribute set to ``++"presentation"++`` or ``++"none"++``. Note that using ``++
++`` for layout purpose is a bad practice. No issue will be raised either on ``++
++`` containing an ``++aria-hidden++`` attribute set to ``++"true"++``. == See * https://www.w3.org/WAI/WCAG21/quickref/?versions=2.0#qr-content-structure-separation-programmatic[WCAG2, 1.3.1] - Info and Relationships * https://www.w3.org/TR/WCAG20-TECHS/H39[WCAG2, H39] - Using caption elements to associate data table captions with data tables ifdef::env-github,rspecator-view[] ''' == Implementation Specification (visible only on this page) include::message.adoc[] ''' == Comments And Links (visible only on this page) include::comments-and-links.adoc[] endif::env-github,rspecator-view[]