In this article we are going to explain what is <fieldset> tag in html or how to use <fieldset> tag in html or how to show grouping related form elements in html with example.


The HTML <fieldset> tag is used for grouping related form elements and <legend> tag defines a caption for the <fieldset>  element.

Let’s see an example of <fieldset> tag:

 <!DOCTYPE html>
    <title>Example of fieldset</title>
    <fieldset style="text-align:right; width:300px;">
        <legend><b>Account Details</b></legend>
        ACCOUNT NUMBER <input type="text" style="width:120px;" /><br />
        IFSC Code <input type="text" style="width:120px;" /><br />
        ATM PIN <input type="text" style="width:120px;" /><br />
      A/C HOLDER NAME <input type="text" style="width:120px;" /><br />


 how to use fieldset in html

 I hope this article will help to you after reading.

Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.

You may also like