<?xml version="1.0" encoding="utf-8"?>

The <fieldset> tag

The <fieldset> tag

Filling out forms can sometimes get really tedious. What can help with that is dividing forms into sections — basically, grouping similar controls together depending on the type of information they ask. For example, when asking for employees' information, an employer can put the fields Full name and Phone number into the Personal info section, and Job title and Start date into Job information section.

To group controls and their labels, put them inside the <fieldset> container tag. Creating sections will also allow you to style each section differently with CSS if you choose to do so.

Improve your UX & Product skills with interactive courses that actually work