943,515 Members | Top Members by Rank

Ad:
Mar 18th, 2008
0

Help with <label for = idref[CS]>

Expand Post »
Hello,
I am trying to understand html's <label> attribute. According to http://www.w3.org/TR/html4/interact/forms.html#h-17.9
when I am using a single label for multiple elements I should use the following format: label for = idref [CS]. From what I understand [CS] represents names of the elements that I am labeling. But what is idref? What am I suppose to put there? Would someone kindly post a small example please?
Reputation Points: 10
Solved Threads: 0
Junior Poster
ryy705 is offline Offline
171 posts
since Jul 2006
Mar 20th, 2008
0

Re: Help with <label for = idref[CS]>

Click to Expand / Collapse  Quote originally posted by ryy705 ...
Hello,
I am trying to understand html's <label> attribute. According to http://www.w3.org/TR/html4/interact/forms.html#h-17.9
when I am using a single label for multiple elements I should use the following format: label for = idref [CS]. From what I understand [CS] represents names of the elements that I am labeling. But what is idref? What am I suppose to put there? Would someone kindly post a small example please?
I don't believe labels can be used for multiple FORM elements.

The idref should be the value of the id attribute of the FORM element for which the label is for. The [CS] stands for Case Sensitive. Since IDs are CS also.

So a label can only be for a single element, since you cannot have two IDs of the same value in an XHTML document.
Moderator
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
digital-ether is offline Offline
1,250 posts
since Sep 2005
Mar 21st, 2008
0

Re: Help with <label for = idref[CS]>

Thanks
Reputation Points: 10
Solved Threads: 0
Junior Poster
ryy705 is offline Offline
171 posts
since Jul 2006
Mar 22nd, 2008
0

Re: Help with <label for = idref[CS]>

Click to Expand / Collapse  Quote originally posted by ryy705 ...
Thanks
you're welcome.
Moderator
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
digital-ether is offline Offline
1,250 posts
since Sep 2005

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Correct me and make me more perfect
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: LogicWeb AJAX





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC