Labeling a Checkbox Within a Table
I am building a site where accessibility is a concern. I've been given a table similar to the one below.
I am wondering what the best way is to provide a label for the checkbox. My initial thought was to do something along these lines, but I'm not sure if it is correct:
<tr>
<td><input type="checkbox" aria-labelledby="username1 company1 address1"></input></td>
<td id="username1">John Doe</td>
<td id="company1">ACME CO</td>
<td id="address1">12345 Main Street, Chicago, IL 12345</td>
<td><select name="usertype" id="1">
<option value="1">User</option>
<option value="2">Admin</option>
<option value="3">Inactive</option>
<option value="4">...</option>
</select></td>
</tr>