Taco

You probably want to wrap the input withing the label, although it's not required:
"
The LABEL element associates a label with a form control. By associating labels with form controls, authors give important hints to users of speech browsers while also allowing visual browsers to duplicate common GUI features (e.g., the ability to click on a text label to select a radio button or checkbox).

Each LABEL element is associated with exactly one form control. The element's content is the label of the form control and may include inline elements such as IMG and STRONG.

The FOR attribute explicitly specifies the control associated with the LABEL. The value of the FOR attribute must match the value of the associated form control's ID attribute. In the absence of the FOR attribute, the LABEL must contain the associated form control. This method of implicit association is convenient in many cases, but not an option when the form control and its label are in different table cells, paragraphs, or divisions.
"
src: WDG HTMLHELP.com


You shouldn't have problem doing this with the code below....



Taco Fleur wrote:
label for multiple elements

What do people do when there is a label for multiple form elements?

For example:

<label for="">Birthdate</label>

<input type="text" name="birthdateDD" id="birthdateDD"> <input type="text" name="birthdateMM" id="birthdateMM"> <input type="text" name="birthdateYYYY" id="birthdateYYYY">


<label for=""><label for=""><label for="">Birthdate</label></label></label> ??????????



Taco Fleur
07 3535 5072

Blog: http://www.tacofleur.com/index/blog/
Methodology: http://www.tacofleur.com/index/methodology/
Tell me and I will forget
Show me and I will remember
Teach me and I will learn

***************************************************** The discussion list for http://webstandardsgroup.org/ *****************************************************

Reply via email to