Grouping a few input fields

suggest change

While designing a form, you might like to group a few input fields into a group to help organise the form layout. This can be done by using the tag . Here is an example for using it.

For each fieldset, you can set a legend for the set using the tag LEGEND TEXT


     <legend>1st field set:</legend>
     Field one:<br>
     <input type="text"><br>
     Field two:<br>
     <input type="text"><br>
     <legend>2nd field set:</legend>
     Field three:<br>
     <input type="text"><br>
     Field four:<br>
     <input type="text"><br>
  <input type="submit" value="Submit">


Browser Support

Chrome, IE, Edge, FireFox, Safari and Opera’s latest versions also supports the tag

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents