
Fieldset is used to group the elements together in the form, which uses <fieldset> to group elemnts
<h2>Field set is used to group elements</h2> <form> <fieldset> <legend>Sign up</legend> Email: <input type="text"><br> Password:<input type="password" /><br /> </fieldset> </form>
In the above code snippet we have fieldset which groups the elements together in the form
output