Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Sometimes, certain form controls belong together in a logical grouping. Form controls can be grouped together using fieldsets and then labeled using a legend.
HTML Elements
- The
fieldset
-element wraps multiple form elements into common groups. This can help organize a form and make it easier to understand for users. - The
legend
-element is similar to the label element, but instead of labeling a form control, it labels a fieldset. Adding a legend to a fieldset can provide some helpful context for users that are filling out a form.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Jack Cummins
17,417 Points4 Answers
-
Christopher Sea
3,726 Points1 Answer
-
Reuven Kishon
5,270 PointsWhy do we use <span> to insert the numbers 1 and 2 within the legend of the fieldsets?
Posted by Reuven KishonReuven Kishon
5,270 Points1 Answer
-
AYA AYA
5,423 Points1 Answer
-
Karl Pupé
6,718 Points1 Answer
-
Dennis de Vries
9,440 Points1 Answer
-
Samuel Benson
2,496 Points3 Answers
-
Edouard Winia
3,257 PointsFrom basics / organizing form : actual width of form larger than max-width set, how can it be ?!
Posted by Edouard WiniaEdouard Winia
3,257 Points2 Answers
-
PLUS
kabir k
Courses Plus Student 18,036 Points1 Answer
-
Diana Garay
841 Points2 Answers
-
PLUS
Gina Bégin
Courses Plus Student 8,613 Points3 Answers
-
Sahan Balasuriya
10,115 Points3 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up