fieldset element | fieldSet object (Internet Explorer)

Switch View :
ScriptFree
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.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5HTML 4.01 Specification, Section 17.1

Standards information

HTML information

Closing Tagrequired
CSS Displayblock

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).