fac19 / week5-FKAM

https://week5-fakm.herokuapp.com/public/index.html
0 stars 4 forks source link

Groups of inputs need a label #49

Open oliverjam opened 4 years ago

oliverjam commented 4 years ago

https://github.com/fac19/week5-FKAM/blob/5f48fe017de7a7bcf805c5b947330e8fdd3c1110/public/form.html#L30-L32

https://github.com/fac19/week5-FKAM/blob/5f48fe017de7a7bcf805c5b947330e8fdd3c1110/public/listings.html#L22-L25

When you have related groups of inputs like these you should wrap them in a <fieldset> and use a <legend> to label them. You can almost combine the two approaches here: use a <fieldset> instead of a <section> to wrap, and use a <legend> instead of a <p> to label.