Tip Details Add a Related Tip

Rate as: Positive Negative

Always use the label attribute when creating radio buttons or checkboxes in forms

If you are creating an HTML form and you are making use of radio buttons or checkboxes, make sure that you use the <label> tag for the text. If you bind the label to the option in the radio button or check box, then clicking on the text of the label also selects the checkbox or label... this is a lot better than making your users have to click in a tiny little box or circle to select an option.

The site at w3schools gives a nice example of this.
Link: www.w3schools.com...Search for more tips related to this link
Rating: 100% positive, 3 total Votes
Categories: HTML CSS coding web
Added: on Mar 14, 2007 at 1:44 pm
Added By: Marcos84

Comments on this Tip

Add a Comment
Doh! I was forgetting to do this on some recently created pages. Thanks for the reminder.
– Added by tipstr on Mar 14, 2007 at 2:44 pm
Your Comment:
(how to format)
Rate This Tip:

Verify Humanity:
Sorry, we know it's annoying, but please enter the characters shown in the image to the left so that we know you're an actual person and not an evil spammer. Thanks.
       

Related Tips

getting rounded corners without using background images

100% positive, 0 comments
– Tip added by tipstr on Mar 13, 2007 at 10:35 am

Cool cutting-edge CSS demos

Categories: CSS coding web web 2.0
no ratings, 1 comment - last added on Mar 08, 2007 at 8:17 pm
– Tip added by Marcos84 on Mar 08, 2007 at 3:27 pm

A better way to paginate through results

100% positive, 2 comments - last added on Mar 09, 2007 at 7:27 am
– Tip added by tipstr on Mar 08, 2007 at 12:33 pm

Scrolling HTML elements using the keyboard

100% positive, 0 comments
– Tip added by rlansky on Jun 22, 2007 at 9:34 am

All-in-one code reference for PHP, JavaScript, CSS, Ruby, Python/SQL, etc.

100% positive, 1 comment - last added on May 08, 2007 at 4:46 pm
– Tip added by an anonymous user on May 08, 2007 at 4:15 pm

shorten URLs using tinyurl

Categories: Computers web HTML email
100% positive, 1 comment - last added on Mar 31, 2007 at 3:11 pm
– Tip added by an anonymous user on Mar 30, 2007 at 1:32 pm

Smooth scrolling for anchor links

100% positive, 1 comment - last added on Mar 12, 2007 at 9:09 am
– Tip added by Marcos84 on Mar 11, 2007 at 9:24 am

The best HTML/CSS/Javascript reference

100% positive, 2 comments - last added on Mar 09, 2007 at 7:36 pm
– Tip added by Marcos84 on Mar 06, 2007 at 3:22 pm

great site with tips on designing to web standards

100% positive, 0 comments
– Tip added by rlansky on Mar 06, 2007 at 10:20 am

compressing javascript

100% positive, 0 comments
– Tip added by an anonymous user on Jun 12, 2008 at 3:02 pm

Telling when an iframe is done loading

100% positive, 0 comments
– Tip added by an anonymous user on Apr 18, 2008 at 8:05 am

CSS effect to create text gradients

Categories: css web design tutorial
100% positive, 0 comments
– Tip added by an anonymous user on Jan 27, 2008 at 6:31 pm

Wrap web text to any shape

100% positive, 0 comments
– Tip added by an anonymous user on Dec 16, 2007 at 10:35 am

Don't use onChange events for checkboxes

Categories: HTML DOM javascript web
no ratings, 0 comments
– Tip added by an anonymous user on Oct 01, 2007 at 4:01 pm

CSS Menu Navigation

Categories: CSS web design coding
no ratings, 0 comments
– Tip added by messy-me on Sep 05, 2007 at 6:09 am

List HTML character entities

no ratings, 0 comments
– Tip added by an anonymous user on Sep 02, 2007 at 8:08 pm

Code for creating Javascript CSS charts

no ratings, 0 comments
– Tip added by an anonymous user on Aug 21, 2007 at 12:23 pm

Styling browse buttons on file elements in forms

Categories: CSS web 2.0 javascript HTML
no ratings, 0 comments
– Tip added by an anonymous user on May 31, 2007 at 9:13 am

Using CSS to center text

Categories: CSS web
no ratings, 0 comments
– Tip added by Marcos84 on Apr 04, 2007 at 7:48 am

Referencing methods in PHP usort

Categories: php coding programming
no ratings, 0 comments
– Tip added by an anonymous user on Jun 13, 2008 at 11:18 am