Table Headers and Labels

I have a form that is formatted by a table.  Two of the three columns have
INPUT elements that need to be associated with LABEL elements.  The only
thing I could think of was to add the LABEL inside of the TH tag.

It validates fine, and looks OK in the Lynx Emulator and in Opera with the
table linearized.  But I thought I would run it by the list and get some
opinions.

Here is the markup:

		<form id="form1" method="post" action="">
		<fieldset>
		<table border="1" cellpadding="2" cellspacing="0"
width="100%">
		<caption>Daily Attendance: July 1, 2002</caption>
		<thead>
			<tr>
				<th scope="col"><label
for="child">Child</label></th>
				<th scope="col"><label
for="attendance">Attendance</label></th>
				<th scope="col"><label
for="exceptionCode">Exception Code</label></th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td scope="row"><span id="child">Bintliff,
Amanda</span></td>
				<td>
					<label for="asScheduled">As
Scheduled</label>
					<input type="radio" id="asScheduled"
name="attendance" value="s" />
					<label
for="exceptions">Exceptions</label>
					<input type="radio" id="exceptions"
name="attendance" value="e" />			
				</td>
				<td>
					<select id="exceptionCode">
						<option value="codeID">Code
1</option>
						<option value="codeID">Code
2</option>
					</select>
				</td>
			</tr>

		</tbody>
		</table>
		</fieldset>

Randal Rust
Covansys, Inc.
Columbus, OH

Received on Tuesday, 30 July 2002 15:27:43 UTC