Menu Home

fieldset

osbo.com | HTML | Elements | fieldset

The fieldset HTML element represents a set of form controls grouped under a common name.

Syntax

HTML

<fieldset attribute-name="attribute-value"></fieldset>

Attributes

Global

Name Value Description
disabled disabled | empty Specifies that the element represents a disabled control
form IDREF Identifies a form with which to associate the element
name string Name part of the name/value pair associated with this element for the purposes of form submission

CSS

fieldset {
    border: 2px groove (internal value);
    display: block;
    margin-left: 2px;
    margin-right: 2px;
    padding: 0.35em 0.75em 0.625em;
}

Examples

disabled

form

name

CSS

Web Hypertext Application Technology Working Group (WHATWG)