O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Organizing the Form Elements

If you have a lot of information to fill out on a form, you can use a fieldset element to group related elements and make the form easier to follow Image. The easier it is for your visitors to understand the form, the more likely they are to fill it out correctly. You can also use the legend element to give each fieldset a caption that describes the purpose of each grouping Image.

Image I have added styles to the fieldset element and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required