Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html <lablel> tag 2

Status
Not open for further replies.

GUJUm0deL

Programmer
Jan 16, 2001
3,676
US
Hi all, what are the pros and cons of using the html <label> tag? Is there any major significance of using this? Does it hinder performance at all (like say there are 10 or 15 form elemenets on the page)?

Thanks a bunch.

____________________________________
Just Imagine.
 
1) what are the pros and cons of using the html <label> tag

I don't know that there are any cons, but one big pro is that you can click on the label to simulate a click on an input field - and this normally requires javascript. For users with javascript disabled the <label> offers them the same functionality.

2) Does it hinder performance at all

I've never noticed multiple labels to hinder performance - and definitely not so with only 10 or 15 on a page. Maybe if you get in the 100s or 1000s you might start seeing problems.

-kaht

[small](All puppies have now found loving homes, thanks for all who showed interest)[/small]
 
Can't think of any cons - only pro's. Shouldn't be any performance issues with it... so go ahead - label all your form elements.

IMO : Much more userfriendly (and sadly not so wide spread around the web as it should be).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top