How to specify a name for the fieldset using HTML ? Last Updated : 22 Dec, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report The <fieldset> tag in HTML5 is used to make a group of related elements in the form and it creates the box over the elements. The <fieldset> tag is new in HTML5. The HTML <fieldset> name attribute is used to specify the name for the fieldset element. It is used to reference the form-data after submitting the form or to reference the element in a JavaScript. Syntax: <fieldset name="text"> Attribute Value: It contains the attribute value name which specify the name for the fieldset element. Example: HTML <!DOCTYPE html> <html> <head> <title> How to specify a name for the fieldset using HTML ? </title> <style> h1, h2 { text-align: center; } h1 { color: green; } fieldset { width: 50%; margin-left: 22.5%; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2> How to specify a name for the fieldset using HTML ? </h2> <form id="myGeeks"> <fieldset id="GFG" name="Geek_field"> <legend>JAVA:</legend> Title: <input type="text"> <br> Link: <input type="text"> <br> User ID: <input type="text"> </fieldset> </form> </body> </html> Output: Supported Browsers: Google ChromeFirefoxOperaApple Safari Comment More infoAdvertise with us Next Article How to specify a name for the fieldset using HTML ? V vkash8574 Follow Improve Article Tags : Web Technologies HTML HTML-Questions Similar Reads How to specify a name for the output element in HTML? The name attribute specifies the name of an <output> element. It is used to reference form data after it has been submitted, or to reference the element in JavaScript. The <output> tag is used to represent the result of a calculation. The HTML <for> type attribute is used because i 1 min read How to specify the type of an input element using HTML ? In this article, we will specify the type of an input element using HTML. The HTML <input> type attribute is used to specify the type of <input> element to display. The default type of <input> type attribute is text. Syntax: <input type="value"> Attribute Values: button: It i 4 min read How to specify the value of an input element using HTML ? In this article, we will set the value of an input element using HTML. The value attribute for <input> element in HTML is used to specify the initial value of the input element. It has different meaning for different input type: The âbuttonâ, âresetâ and âsubmitâ property specifies the text on 1 min read How to specify the name of an input element? To add the name of an input element, we use the HTML <input> name attribute. The HTML <input> name attribute is used to specify a name for an <input> element. It is used to reference the form data after submitting the form or to reference the element in JavaScript. Syntax:<input 2 min read How to specify the name for drop-down list in HTML5 ? Drop-down lists are also another way to allow people to choose only one choice from a number of alternatives. Since the default option is usually the first item on the list, using the drop-down list can be a safe choice if you know that one option is always preferred over the others. The drop-down l 4 min read Like