W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2002

is this a proper solution for a checkbox?

From: RUST Randal <RRust@COVANSYS.com>
Date: Wed, 3 Jul 2002 14:35:26 -0400
Message-ID: <37925254B67DD311876C009027B0FF92027FC36C@cbscolex01.cbsinc.com>
To: "WAI (E-mail)" <w3c-wai-ig@w3.org>

I want to add a checkbox to the rows of a table, so that the user can select
the record that they want to perform an action on.  Does anyone see a
problem with the following markup?  I've validated to XHTML 1.0 Transitional
and also to WCAG AAA with Bobby.  No problems in either, so I'm thinking
this will be allright.

Any feedback is appreciated.

      <table border="1" cellspacing="0" cellpadding="2" rules="rows"
summary="Table of referrals for this family." width="100%">
        <caption>Referrals</caption>
        <colgroup><col width="4%" /><col span="6" width="16%" /></colgroup>
        <thead>
          <tr> 
            <th scope="col">Select</th>
            <th scope="col">ID Number</th>
            <th scope="col">Family Member</th>
            <th scope="col">Caseworker</th>
            <th scope="col">Type</th>
            <th scope="col">Date</th>
            <th scope="col">Waive Income</th>
          </tr>
        </thead>
        <tbody>
          <tr> 
            <td scope="row">
			<label for="select1" style="display:
none;">Select:</label>
			<input type="checkbox" id="select1" name="select1"
/>
		</td>
            <td><a href="#">number</a></td>
            <td><a href="#">member</a></td>
            <td>worker</td>
            <td>type</td>
            <td>date</td>
            <td>value</td>
          </tr>
        </tbody>
      </table>

Randal Rust
Covansys, Inc.
Columbus, OH
Received on Wednesday, 3 July 2002 14:32:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:05 GMT