[thelist] form label tag

fstorr fffrancis at fstorr.demon.co.uk
Thu Sep 12 15:22:01 CDT 2002


Ah, so the input has to be INSIDE the label, so I can't use them on
separate rows right? It must be <label for="1">One<input type="text"
id="1" name="1"></label>

is that correct?

________________

Nope, you can do it like this, too:

<tr>
<td>
<label for="FirstName">First Name</label>
</td>
<td>
<input type="text" id="FirstName">
</td>
</tr>


If you do this, you get the added bonus (in IE) of being able to click
on the words within the label element (in this case First Name) and it
puts the focus into the associated input field.

Cheers

Francis





More information about the thelist mailing list