Correct the ID's are required for the  "for" attribute of the LABEL tag to
work; but each ID must be unique.

Best Regards,
Nate Hanna




On Wed, Aug 19, 2009 at 11:54 AM, James O'Neill <[email protected]> wrote:

> I think the ID's are required for the 'for' attribute to work for labels,
> which enables the their clickability. When these labels are clicked on they
> focus on the element whose ID is in the for attribute.
> <label for="Comments">Enter you comments:</label>
>
> Plus having ID's associated allows for more sophisticated form error
> handling by having targets..
>
> http://www.usability.com.au/resources/forms.cfm
> http://www.communitymx.com/content/article.cfm?cid=02310
>
> Jim
>
> On Wed, Aug 19, 2009 at 10:37, Erickson, Kevin (DOE) <
> [email protected]> wrote:
>
>>  Good day,
>>
>> When making a form in Dreamweaver it puts in id="same as name" in to every
>> form item. When I take out all the id attributes the form still works. Why
>> are the id attributes being put in by DW and, more importantly, is there an
>> accessibility issue if I take them out?
>> i.e. -
>>
>> <textarea name="Comments" cols="60" rows="5"></textarea>
>> vs.
>> <textarea name="Comments" id="Comments" cols="60" rows="5"></textarea>
>>
>> and
>>
>> <input type="submit" name="submit2" value="Submit" />
>> vs.
>> <input type="submit" name="submit2" id="submit" value="Submit" />
>>
>>
>> Thank you,
>> Kevin
>>
>
>
> *******************************************************************
> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
> Help: [email protected]
> *******************************************************************
>


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

Reply via email to