HTML5 > Structures

Fieldset in HTML5

How to group the elements together using fieldset in HTML


Fieldset

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

 

 Views: 455 | Post Order: 85



Write for us