Newbie Question

B

Bruce A. Julseth

I understand how to "program" the HTML Label tag but don't understand why I
would use it. Appreciate a short technical discussion on why I would use it.

Thanks....
 
T

Travis Newbury

I understand how to "program" the HTML Label tag but don't understand why I
would use it. Appreciate a short technical discussion on why I would use it.

It defines a label to a control. If you click the text within the
label element, it is supposed to toggle the control. See an example
of the code right here: http://www.w3schools.com/tags/tag_label.asp

Which interestingly enough is the FIRST item displayed when you google
"label tag html" Did you even TRY to look for yourself?
 
B

Bruce A. Julseth

I understand how to "program" the HTML Label tag but don't understand why
I
would use it. Appreciate a short technical discussion on why I would use
it.

It defines a label to a control. If you click the text within the
label element, it is supposed to toggle the control. See an example
of the code right here: http://www.w3schools.com/tags/tag_label.asp

Which interestingly enough is the FIRST item displayed when you google
"label tag html" Did you even TRY to look for yourself?

Thanks for the response. Yes I did google the tag. I didn't see the URL
that you displayed. The URL I did find had a description similar to what you
wrote, but I still didn't 'completely' understand what the use was. Your
describe is very clear. Thanks again.
 
M

+mrcakey

Bruce A. Julseth said:
It defines a label to a control. If you click the text within the
label element, it is supposed to toggle the control. See an example
of the code right here: http://www.w3schools.com/tags/tag_label.asp

Which interestingly enough is the FIRST item displayed when you google
"label tag html" Did you even TRY to look for yourself?

Thanks for the response. Yes I did google the tag. I didn't see the URL
that you displayed. The URL I did find had a description similar to what
you wrote, but I still didn't 'completely' understand what the use was.
Your describe is very clear. Thanks again.

It's also useful for providing an association between the label and the
input for assistive technologies, which using a <p> tag next to a control
wouldn't do.

+mrcakey
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,104
Messages
2,570,643
Members
47,248
Latest member
Angelita78

Latest Threads

Top