Introduction:

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.

Description:

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>
<html>
<head>
    <title>Example of fieldset</title>
    
</head>
<body>
    <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 />
    </fieldset>
</body>
</html>

Output:

 how to use fieldset in html

 I hope this article will help to you after reading.

0 comments


Leave a comment

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

you may also like