Dear friends, I am creating a register form and I was wondering whether to use the <fieldset> tag in HTML in order to group the form fields nicely. Is this approach still being used or is it deprecated? Thank you! Best Regards Stefany
generally we use the filedset tag in htmal for to group related elements in a form.Filedset tag are using the draws a box around the related elements. for ex:- <form> <fieldset> <legend>Registration form:</legend> Name: <input type="text" /><br /> Email: <input type="text" /><br /> Date of birth: <input type="text" /> </fieldset> </form>
The HTML <[FONT=&]fieldset>[/FONT] tag is used for grouping related form elements. By using the <fieldset> tag and the <legend> tag, you canmake your forms much easier to understand for your users.