Labelling multiple elements

Recipe 9.2 Identify form elements

Sample:

Players
Username Name Level

Code:

<table>
  <caption>Players</caption>

  <thead>
    <tr>
      <th id="username">Username</th>
      <th id="name">Name</th>
      <th id="level">Level</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><input type="text" aria-labelledby="username" autocomplete="username"></td>
      <td><input type="text" aria-labelledby="name" autocomplete="username"></td>
      <td><input type="text" aria-labelledby="level" autocomplete="given-name"></td>
    </tr>
    <tr>
      <td><input type="text" aria-labelledby="username" autocomplete="username"></td>
      <td><input type="text" aria-labelledby="name" autocomplete="username"></td>
      <td><input type="text" aria-labelledby="level" autocomplete="given-name"></td>
    </tr>
  </tbody>
</table>