Hosting Solutions
mobile_logo Table of Contents


The <fieldset> element is used to section off a grouping of form controls or inputs. You can apply a <legend> element as we have in the code example to give the fieldset a visible title.

Code Example

<fieldset style="padding:12px;"> <legend style="color:#06F;">Personal Information</legend> <p>User Name: <input type="text" name="uname" /></p> <p>User Email: <input type="text" name="email" /></p> </fieldset> open in code editor


globals - the global attributes common to all elements possible values: see global attribute list disabled - disable all of the controls within it possible values: "disabled", "" form - associate the fieldset with a form possible values: "form id" name - name for the element possible values: "specify name"

Official Documentation



aabbraddressareaasidearticleaudiobbasebdobdiblockquotebodybrbuttoncanvascaptioncitecodecolcolgroupdatadatalistdddeldetailsdfndialogdivdldtemembedfieldsetfigcaptionfigurefooterformh1 h2 h3 h4 h5 h6headheaderhrhtmliiframeimginputinskbdkeygenlabellegendlilinkmainmapmarkmetameternavnoscriptobjectoloptgroupoptionoutputpparampreprogressqrb rp rt rtc rubyssampscriptsectionselectsmallsourcespanstrongstylesub supsummarytabletbodytdtemplatetextareatfootththeadtimetitletrtrackuulvarvideowbr