Easy Tutorial
❮ Ev Onfocus Tag Frame ❯

HTML <fieldset> disabled Attribute

HTML <fieldset> Tag

Example

Disable a group of related form elements:


Browser Support

Except for Internet Explorer and Safari, other major browsers support the disabled attribute.


Definition and Usage

The disabled attribute is a boolean attribute.

The disabled attribute specifies that a group of related form elements (a fieldset) should be disabled.

A disabled fieldset is unusable and un-clickable.

The disabled attribute can be set to keep form elements from being used until some condition is met (like selecting a checkbox, etc.). Then, using JavaScript, the disabled value can be removed to make the fieldset usable.


Differences Between HTML 4.01 and HTML5

The disabled attribute is new for the <fieldset> tag in HTML5.


Differences Between HTML and XHTML

In XHTML, attribute minimization is forbidden, and the disabled attribute must be defined as <fieldset disabled="disabled">.


Syntax

❮ Ev Onfocus Tag Frame ❯