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

Get HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.