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.
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 |

