HTML | <fieldset> form Attribute
The HTML | <fieldset> form Attribute is used to specify the one or more forms that the <fieldset> element belongs to.
Syntax:
<fieldset form="form_id">
Attribute Values:
- form_id: It contains the value i.e form_id which specify the no. of forms that the <fieldset> element belongs to. The value of this attribute should be the id of the <form> element.
Example:
<!DOCTYPE html> <html> <head> <title> HTML fieldset form Attribute </title> <style> h1, h2, .titl { text-align: center; } fieldset { width: 50%; margin-left: 22%; } h1 { color: green; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2> HTML <fieldset> form Attribute </h2> <form id="mygeeks"> <div class="titl"> Suggest article for video: </div> </form> <fieldset form="mygeeks"> <legend>JAVA:</legend> Title: <input type="text"> <br> Link: <input type="text"> <br> User ID: <input type="text"> </fieldset> <br> <fieldset form="mygeeks"> <legend>PHP:</legend> Title: <input type="text"> <br> Link: <input type="text"> <br> User ID: <input type="text"> </fieldset> </body> </html> |
chevron_right
filter_none
Output :

Supported Browsers: The browser supported by HTML <fieldset> form Attribute are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Opera
- Safari
Recommended Posts:
- HTML | <form> name Attribute
- HTML | form Attribute
- HTML | <object> form Attribute
- HTML | <form> autocomplete Attribute
- HTML | <form> enctype Attribute
- HTML | <form> onreset Attribute
- HTML | <form> novalidate Attribute
- HTML | <meter> form Attribute
- HTML | <form> target Attribute
- HTML | <form> method Attribute
- HTML | <button> form Attribute
- HTML | <input> form Attribute
- HTML | <output> form Attribute
- HTML | <label> form Attribute
- HTML | <select> form Attribute
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



