On 10 Nov 2006, at 16:11:14, Emma Sax wrote:
<label for="answer"><input type="radio" value="0" name="answer"
alt="make
your mark" id="answer" />Text</label><br />

Being picky, the name isn't actually required (unless being used in
scripts etc).  The 'for' attribute of the label gets matched with the
'id' attribute of the associated form field.


The name is needed for each member of a group of radio buttons: it's how they're grouped.

For other input fields, the name is needed if the form is going to be submitted to the server, as otherwise there's no way to form a name:value pair, and so the field can't be submitted.

Cheers,

Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/





*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to