{"id":4587,"date":"2015-05-28T12:15:42","date_gmt":"2015-05-28T09:15:42","guid":{"rendered":"http:\/\/www.webcodegeeks.com\/?p=4587"},"modified":"2017-12-19T13:58:55","modified_gmt":"2017-12-19T11:58:55","slug":"html5-fieldset-example","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/","title":{"rendered":"HTML5 Fieldset Example"},"content":{"rendered":"<p>The aim of this example is to present you to tha <code>fieldset<\/code> tag of HTML.<\/p>\n<p>The fieldset is used to group similar and related elements, it draws a line box around the content inside. It is supported by all browsers.<\/p>\n<p>It will be necessary whenever you need to gather elements for example of the same type like inputs, or just normal organised text list.<\/p>\n<p>Let us first look at the basics, that is, main application, default styling and available html attributes and then see it more specifically in an example.<\/p>\n<p>You do not need any extra files to download before we start.<br \/>\n&nbsp;<br \/>\n[ulp id=&#8217;tgm4cmEWcKUikZNn&#8217;]<\/p>\n<h2>1. Basic Setup &amp; Application <\/h2>\n<p>Start with these two essential steps to get this going.<\/p>\n<h3>1.1 Basic Setup <\/h3>\n<p>Go ahead and create a new html file inside your project folder with its basic syntax:<\/p>\n<pre class=\"brush:xml\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n\t&lt;title&gt;HTML5 Fieldset Example&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n&lt;!-- STYLE SECTION --&gt;\r\n\r\n&lt;style type=\"text\/css\"&gt;\r\n\r\n&lt;\/style&gt;\r\n\r\n&lt;!-- HTML SECTION --&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<h3>1.2 Basic Application <\/h3>\n<p>So, create a fieldset tag (open and close it) and add some text inside like so:<\/p>\n<pre class=\"brush:xml\">&lt;!-- HTML SECTION  --&gt;\r\n\r\n&lt;fieldset&gt;This is a fieldset&lt;\/fieldset&gt;\r\n<\/pre>\n<p>This is how a fieldset looks like, for now.<br \/>\n<figure id=\"attachment_4600\" aria-describedby=\"caption-attachment-4600\" style=\"width: 820px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset2.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset2.jpg\" alt=\"Fieldset Besic Application\" width=\"820\" height=\"152\" class=\"size-full wp-image-4600\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset2.jpg 820w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset2-300x56.jpg 300w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/a><figcaption id=\"caption-attachment-4600\" class=\"wp-caption-text\">Fieldset Besic Application<\/figcaption><\/figure><\/p>\n<h2> 2. Attributes, Default Styling and Adding Elements <\/h2>\n<p>In this section we will see how this element can be used.<\/p>\n<h3>2.1 Attributes <\/h3>\n<p>There are three main attributes you can give to the fieldset element in html:<\/p>\n<p>1. <code>disabled<\/code> &#8211; indicates an inactive\/non-editable view of the element\/s inside<\/p>\n<pre class=\"brush:xml\">\t&lt;fieldset disabled = \"disabled\"&gt;<\/pre>\n<p>2. <code>form<\/code> &#8211; specifies one or more forms the fieldset belongs to<\/p>\n<pre class=\"brush:xml\">\t&lt;fieldset form= \"form_id\"&gt;<\/pre>\n<p>3. <code>name<\/code> &#8211; gives the fieldset a name (to be referred in other applications)<\/p>\n<pre class=\"brush:xml\">\t&lt;fieldset name= \"inputs\"&gt;<\/pre>\n<p>Do notice that all these elements are new attributes that were announced with HTML version 5.<\/p>\n<h3>2.2 Default Styling <\/h3>\n<p>Remember the element from the basic example had a line wrapping the box. This is because of this default styling:<\/p>\n<pre class=\"brush:css\">\r\nfieldset { \r\n    display: block;\r\n    margin-left: 2px;\r\n    margin-right: 2px;\r\n    padding-top: 0.35em;\r\n    padding-bottom: 0.625em;\r\n    padding-left: 0.75em;\r\n    padding-right: 0.75em;\r\n    border: 2px groove (internal value);\r\n}\r\n<\/pre>\n<p>But we will change this, and maybe convert it into a modern-looking content wrapper.<\/p>\n<h3>2.3 Adding Elements inside the Fieldset <\/h3>\n<p>You can add various elements inside a fieldset, like lists, inputs, paragraphs etc. Lets begin adding a <code>legend<\/code>.<\/p>\n<p>A legend will show as a text on top of the fieldset and will interrupt the wrapping line in its place. Take a look:<\/p>\n<pre class=\"brush:xml\">\r\n&lt;!-- HTML SECTION  --&gt;\r\n&lt;fieldset&gt;\r\n\t&lt;legend&gt;I am a legend here.&lt;\/legend&gt;\r\n\t&lt;p&gt;I am a random paragraph text :(&lt;\/p&gt;\r\n&lt;\/fieldset&gt;\r\n<\/pre>\n<p><figure id=\"attachment_4608\" aria-describedby=\"caption-attachment-4608\" style=\"width: 820px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset3.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset3.jpg\" alt=\"Legend and Paragraph inside the Fieldset\" width=\"820\" height=\"152\" class=\"size-full wp-image-4608\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset3.jpg 820w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset3-300x56.jpg 300w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/a><figcaption id=\"caption-attachment-4608\" class=\"wp-caption-text\">Legend and Paragraph inside the Fieldset<\/figcaption><\/figure><br \/>\nI added a fixed width of 30em to the fieldset for better viewing the whole element.<\/p>\n<p>Now let&#8217;s see an example where we add inputs inside the fieldset, take a look at the code below:<\/p>\n<pre class=\"brush:xml\">\r\n&lt;!-- HTML SECTION  --&gt;\r\n&lt;fieldset&gt;\r\n\t&lt;legend&gt;Question 1&lt;\/legend&gt;\r\n\t&lt;p&gt;Who is the CEO of the famous Unknown social network?&lt;\/p&gt;\r\n\t&lt;input type=\"radio\" name=\"foo\"&gt;Jack &lt;br\/&gt;\r\n\t&lt;input type=\"radio\" name=\"foo\"&gt;Ella &lt;br\/&gt;\r\n\t&lt;input type=\"radio\" name=\"foo\"&gt;Miller &lt;br\/&gt;\r\n\t&lt;input type=\"radio\" name=\"foo\"&gt;Ilias &lt;br\/&gt;\r\n\t&lt;br&gt;\r\n\t&lt;input type=\"submit\"&gt;\r\n&lt;\/fieldset&gt;\r\n<\/pre>\n<p>We added a legend indicating this is the first question, a paragraph conatining the question and four radio buttons representing answers. Also we added a submit button at the bottom of the fieldset.<br \/>\n<figure id=\"attachment_4611\" aria-describedby=\"caption-attachment-4611\" style=\"width: 820px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset4.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset4.jpg\" alt=\"Fieldset with various Elements inside\" width=\"820\" height=\"264\" class=\"size-full wp-image-4611\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset4.jpg 820w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset4-300x97.jpg 300w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/a><figcaption id=\"caption-attachment-4611\" class=\"wp-caption-text\">Fieldset with various Elements inside<\/figcaption><\/figure><\/p>\n<p>Well, now you know what is most important about the fieldset. The next part is just some styling.<\/p>\n<h2>3. Stlyling the Fieldset <\/h2>\n<p>There is not too much to style in a fieldset that is different to normal box elements you create.<\/p>\n<p>One of the styling I like for a fieldset would be:<\/p>\n<pre class=\"brush:css\">\r\n&lt;!-- STYLE  SECTION --&gt;\r\n\r\n  &lt;style type=\"text\/css\"&gt;\r\n\r\n  fieldset {\r\n  \tfont-family: \"Montserrat\", \"sans-serif\"; \/* just a custom font *\/\r\n  \twidth: 30em;\t\t\t\t\t\t\t\/* fixed width for the box *\/\r\n  \tborder-radius: 0.5em;\t\t\t\t\t\/* applied border radius *\/\r\n  \tborder: 0.1em solid #ccc;\t\t\t\t\/* custom border style *\/\r\n  \tbackground-color: #fffde1;\t\t\t\t\/* added a background color *\/\r\n  \tbox-shadow: 0.08em 0.05em 0.08em #ccc;\t\/* added a soft box shadow *\/\r\n  }\r\n\r\n  &lt;\/style&gt;\r\n<\/pre>\n<p>The nice plain view would be:<br \/>\n<figure id=\"attachment_4615\" aria-describedby=\"caption-attachment-4615\" style=\"width: 820px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset5.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset5.jpg\" alt=\"A Simple Fieldset Styling\" width=\"820\" height=\"264\" class=\"size-full wp-image-4615\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset5.jpg 820w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset5-300x97.jpg 300w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/a><figcaption id=\"caption-attachment-4615\" class=\"wp-caption-text\">A Simple Fieldset Styling<\/figcaption><\/figure><\/p>\n<p>Well, that&#8217;s all you need to know about styling, no extraordinary styling is applied to these kind of elements.<\/p>\n<p>You can easily create forms with fieldsets inside to organize your information. Look at the code below for example:<\/p>\n<pre class=\"brush:xml\">\r\n&lt;!-- HTML SECTION  --&gt;\r\n&lt;form&gt;\r\n&lt;h3&gt;STEP 1&lt;\/h3&gt;\r\n&lt;fieldset&gt;\r\n\t&lt;legend&gt;Choose two friends.&lt;\/legend&gt;\r\n\t&lt;p&gt;Who is the CEO of the famous Unknown social network?&lt;\/p&gt;\r\n\t&lt;input type=\"radio\" name=\"foo\"&gt;Jack &lt;br\/&gt;\r\n\t&lt;input type=\"radio\" name=\"foo\"&gt;Ella &lt;br\/&gt;\r\n\t&lt;input type=\"radio\" name=\"foo\"&gt;Miller &lt;br\/&gt;\r\n\t&lt;input type=\"radio\" name=\"foo\"&gt;Ilias &lt;br\/&gt;\r\n&lt;\/fieldset&gt;\r\n\r\n&lt;h3&gt;STEP 2&lt;\/h3&gt;\r\n\r\n\t&lt;fieldset&gt;\r\n\t\t&lt;legend&gt;Personal Details&lt;\/legend&gt;&lt;br\/&gt;\r\n\t\t&lt;label for=name&gt;Name&lt;\/label&gt;\r\n\t\t&lt;input name=\"name\" placeholder=\"Your Name\" type=\"text\"&gt;&lt;br\/&gt;\r\n\t\t&lt;label for=email&gt;Email&lt;\/label&gt;\r\n\t\t&lt;input name=\"email\" placeholder=\"Your E-Mail\" type=\"text\"&gt;&lt;br\/&gt;\r\n\t\t&lt;label for=address&gt;Address&lt;\/label&gt;&lt;br\/&gt;\r\n\t\t&lt;textarea name=\"address\" placeholder=\"Your Address\" type=\"text\"&gt;&lt;\/textarea&gt;&lt;br\/&gt;\r\n\t&lt;\/fieldset&gt;\r\n\r\n\t&lt;h3&gt;STEP 3&lt;\/h3&gt;\r\n\r\n\t&lt;fieldset&gt;\r\n\t&lt;legend&gt;Destinations&lt;\/legend&gt;\r\n\t&lt;p&gt;Where would you like to travel?&lt;\/p&gt;\r\n\t&lt;input type=\"checkbox\" name=\"foo\"&gt;Brasil &lt;br\/&gt;\r\n\t&lt;input type=\"checkbox\" name=\"foo\"&gt;New York &lt;br\/&gt;\r\n\t&lt;input type=\"checkbox\" name=\"foo\"&gt;Sydney &lt;br\/&gt;\r\n\t&lt;input type=\"checkbox\" name=\"foo\"&gt;Miami &lt;br\/&gt;\r\n&lt;\/fieldset&gt;\r\n&lt;br&gt;\r\n&lt;input type=\"submit\"&gt;\r\n&lt;\/form&gt;\r\n<\/pre>\n<p>With a few lines of CSS:<\/p>\n<pre class=\"brush:css\">\r\n&lt;!-- STYLE  SECTION --&gt;\r\n\r\n&lt;style type=\"text\/css\"&gt;\r\n\r\nfieldset {\r\n\tfont-family: \"Montserrat\", \"sans-serif\"; \/* just a custom font *\/\r\n\twidth: 30em;\t\t\t\t\t\t\t\/* fixed width for the box *\/\r\n\tborder-radius: 0.5em;\t\t\t\t\t\/* applied border radius *\/\r\n\tborder: 0.1em solid #ccc;\t\t\t\t\/* custom border style *\/\r\n\tbackground-color: #fffde1;\t\t\t\t\/* added a background color *\/\r\n\tbox-shadow: 0.08em 0.05em 0.08em #ccc;\t\/* added a soft box shadow *\/\r\n\tmargin-bottom: 2em;\r\n}\r\n\r\nform {\r\n\tfont-family: \"Montserrat\", \"sans-serif\";\r\n\tborder: 0.1em solid #ccc;\r\n\tborder-radius: 0.5em;\r\n\twidth: 33em;\r\n\tbackground-color: #f3f3f3;\r\n\tpadding: 2em;\r\n}\r\n\r\ninput {\r\n\tmargin-bottom: 1em;\r\n}\r\n\r\ntextarea {\r\n\twidth: 20em;\r\n\theight: 5em;\r\n}\r\n\r\n&lt;\/style&gt;\r\n<\/pre>\n<p>In this example I added three fieldsets each with its own type of information inside.<br \/>\n<figure id=\"attachment_4621\" aria-describedby=\"caption-attachment-4621\" style=\"width: 820px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset6.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset6.jpg\" alt=\"Form with Fieldsets Inside\" width=\"820\" height=\"915\" class=\"size-full wp-image-4621\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset6.jpg 820w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/fieldset6-269x300.jpg 269w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/a><figcaption id=\"caption-attachment-4621\" class=\"wp-caption-text\">Form with Fieldsets Inside<\/figcaption><\/figure><\/p>\n<h2>4. Conclusion <\/h2>\n<p>To conclude, we can say that using fieldsets allow you to mark up your data in the most semantic way available. <\/p>\n<p>Consider that placing your fields in a fieldset is more descriptive than placing your fields in a div. <\/p>\n<p>The div tells you nothing about the relationship between the fields, a fieldset tells you there is a relationship.<\/p>\n<h2>5. Download <\/h2>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here: <a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/HTML5-Fieldset-Example.zip\"><strong>HTML5 Fieldset Example<\/strong><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The aim of this example is to present you to tha fieldset tag of HTML. The fieldset is used to group similar and related elements, it draws a line box around the content inside. It is supported by all browsers. It will be necessary whenever you need to gather elements for example of the same &hellip;<\/p>\n","protected":false},"author":75,"featured_media":914,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-4587","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html5"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>HTML5 Fieldset Example - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"The aim of this example is to present you to tha fieldset tag of HTML. The fieldset is used to group similar and related elements, it draws a line box\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HTML5 Fieldset Example - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"The aim of this example is to present you to tha fieldset tag of HTML. The fieldset is used to group similar and related elements, it draws a line box\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/fabiocimo\" \/>\n<meta property=\"article:published_time\" content=\"2015-05-28T09:15:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-19T11:58:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Fabio Cimo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fabiocimo\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fabio Cimo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/\"},\"author\":{\"name\":\"Fabio Cimo\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22\"},\"headline\":\"HTML5 Fieldset Example\",\"datePublished\":\"2015-05-28T09:15:42+00:00\",\"dateModified\":\"2017-12-19T11:58:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/\"},\"wordCount\":649,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg\",\"articleSection\":[\"HTML5\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/\",\"name\":\"HTML5 Fieldset Example - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg\",\"datePublished\":\"2015-05-28T09:15:42+00:00\",\"dateModified\":\"2017-12-19T11:58:55+00:00\",\"description\":\"The aim of this example is to present you to tha fieldset tag of HTML. The fieldset is used to group similar and related elements, it draws a line box\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML5\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/html5\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"HTML5 Fieldset Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22\",\"name\":\"Fabio Cimo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g\",\"caption\":\"Fabio Cimo\"},\"description\":\"Fabio is a passionate student in web tehnologies including front-end (HTML\/CSS) and web design. He likes exploring as much as possible about the world wide web and how it can be more productive for us all. Currently he studies Computer Engineering, at the same time he works as a freelancer on both web programming and graphic design.\",\"sameAs\":[\"https:\/\/www.facebook.com\/fabiocimo\",\"https:\/\/al.linkedin.com\/in\/fabiocimo\",\"https:\/\/x.com\/fabiocimo\",\"https:\/\/www.youtube.com\/fabiocimo1\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/fabio-cimo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HTML5 Fieldset Example - Web Code Geeks - 2026","description":"The aim of this example is to present you to tha fieldset tag of HTML. The fieldset is used to group similar and related elements, it draws a line box","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/","og_locale":"en_US","og_type":"article","og_title":"HTML5 Fieldset Example - Web Code Geeks - 2026","og_description":"The aim of this example is to present you to tha fieldset tag of HTML. The fieldset is used to group similar and related elements, it draws a line box","og_url":"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_author":"https:\/\/www.facebook.com\/fabiocimo","article_published_time":"2015-05-28T09:15:42+00:00","article_modified_time":"2017-12-19T11:58:55+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg","type":"image\/jpeg"}],"author":"Fabio Cimo","twitter_card":"summary_large_image","twitter_creator":"@fabiocimo","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Fabio Cimo","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/"},"author":{"name":"Fabio Cimo","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22"},"headline":"HTML5 Fieldset Example","datePublished":"2015-05-28T09:15:42+00:00","dateModified":"2017-12-19T11:58:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/"},"wordCount":649,"commentCount":0,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg","articleSection":["HTML5"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/","url":"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/","name":"HTML5 Fieldset Example - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg","datePublished":"2015-05-28T09:15:42+00:00","dateModified":"2017-12-19T11:58:55+00:00","description":"The aim of this example is to present you to tha fieldset tag of HTML. The fieldset is used to group similar and related elements, it draws a line box","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-fieldset-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"HTML5","item":"https:\/\/www.webcodegeeks.com\/category\/html5\/"},{"@type":"ListItem","position":3,"name":"HTML5 Fieldset Example"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22","name":"Fabio Cimo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g","caption":"Fabio Cimo"},"description":"Fabio is a passionate student in web tehnologies including front-end (HTML\/CSS) and web design. He likes exploring as much as possible about the world wide web and how it can be more productive for us all. Currently he studies Computer Engineering, at the same time he works as a freelancer on both web programming and graphic design.","sameAs":["https:\/\/www.facebook.com\/fabiocimo","https:\/\/al.linkedin.com\/in\/fabiocimo","https:\/\/x.com\/fabiocimo","https:\/\/www.youtube.com\/fabiocimo1"],"url":"https:\/\/www.webcodegeeks.com\/author\/fabio-cimo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/4587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=4587"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/4587\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/914"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=4587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=4587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=4587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}