Formatting HTML forms part II
After my post on HTML forms yesterday I was fooling around with the fieldset and label tags. Both seem quite usefull! But Internet Explorer is really quite bad at rendering the fieldset. My 4-year old daughter does a better job of coloring inside the lines
Mozilla Firefox is much better
If you want to use the labels in a struts tag you should do it like this.
<label for="password">Password </label><html:password property="password" styleId="password"/>
Clicking on the label will put the focus on the corresponding field. In case of a checkbox clicking on the label either checks or unchecks the box. Nice!