Acts of Volition

Comments

Steven Perry -

Thanks for sharing! I can't believe there was such a useful tag that I didn't even know about.

CMax -

Yes, nice tip, Steven. Neither was I aware of that one. It's hardly surprising one could miss this kind of thing. Best to be aware that many sources of specifications are not 100% complete. Even so, when reading over specs it can be easy to overlook poorly-illuminated sections, especially when hurried (should sound familiar).

Matt Brubeck -

Here's another cool tip, which can improve discoverability for form labels. In your stylesheet, add the following line:

label { cursor: pointer; }

Using label:hover effects can serve a similar purpose.

Erik Porter -

Be wary when adding styles directly to the label tag. Some browsers (I think Netscape in particular) get very, very unhappy when you do that, and will not render some elements on the page at all.

Tamás Dobos -

This sucks! The click on the label works nicely but I can't change the caption from javascript or at least I don't know how to do it.

Alex Aguilar -

http://www.sitepoint.com/article/1273/2

the article above just expands a bit more on what you've already mentioned.
the visual hints are a nice touch.

Graham -

Didn't know that labels were clickable too! A bit disappointed that w3schools don't explain the use of labels much at all... Thanks for sharing! :)