fieldset element | fieldSet object
[This documentation is preliminary and is subject to change.]
Draws a box around the text and other elements that the field set contains.
![]() ![]() |
Standards information
- Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5
- HTML 4.01 Specification, Section 17.1
HTML information
| Closing Tag | required |
|---|---|
| CSS Display | block |
DOM Information
Inheritance Hierarchy
Node
Element
HTMLElement
fieldSet
Remarks
This element is useful for grouping elements in a form and for distinctively marking text in a document.
The FIELDSET element has the same behavior as a window frame. Because window frames do not have scroll bars, assigning the overflow property a value of scroll will render it as if the value were hidden.
Build date: 3/8/2012
Community Content
JaMe5
Internet Explorer vs. FireFox Margins
This element does not have a default layout context within IE. In order for IE to understand how to apply the margins you must force the fieldset element to gain a layout context. The easiest way to do this, and most compatible, is to apply fieldset {display:block;} - Now any margins will be applied correctly within all major browsers (FF, IE, Chrome, Opera, & Safari were tested).

