1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39

content / test / data / accessibility / html / caption.html [blame]

<!--
@BLINK-ALLOW:description*
@WIN-ALLOW:description*
@AURALINUX-ALLOW:description*
@UIA-WIN-ALLOW:FullDescription*
@MAC-ALLOW:AXDescription
@MAC-ALLOW:AXHelp
-->
<!DOCTYPE html>
<html>
<body>

<table>
  <caption>Browser and Engine</caption>
  <tr>
    <th>Browser</th>
    <th>Engine</th>
  </tr>
  <tr>
    <td>Chrome</td>
    <td>Blink</td>
  </tr>
  <tr>
    <td>Safari</td>
    <td>WebKit</td>
  </tr>
</table>

<!-- If there is already a name, the caption becomes a description -->
<table aria-label="Name">
  <caption>Description</caption>
  <tr>
    <td>A</td>
    <td>B</td>
  </tr>
</table>

</body>
</html>