Dofactory.com
Dofactory.com
Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

HTML <fieldset> disabled Attribute

The disabled attribute on a <fieldset> tag disables the fieldset and all its child input controls.

The controls appear grayed out and are unusable.

Example

#

A <fieldset> element with a disabled attribute.
All input elements inside the fieldset are unusable.

Customer Information


<form action="/tutorial/action.html">
  <fieldset disabled>
    <legend>Customer Information</legend>

    <label>Name</label>
    <input type="text" name="name"><br />
  
    <label>Age</label>
    <input type="text" name="age"><br />
  
    <label>Email</label>
    <input type="text" name="email"><br />

    <button type="submit">Submit</button>
  </fieldset>
</form>

Using disabled

The disabled attribute specifies that the fieldset is disabled.

The child input elements appear grayed out and are unusable.

Disabled input elements are excluded from form submission.


Syntax

<fieldset disabled>
or
<fieldset disabled="disabled">

Values

#

Value Description
disabled Use value 'disabled' or no value at all.

Browser support

Here is when disabled support started for each browser:

Chrome
1.0 Sep 2008
Firefox
1.0 Sep 2002
IE/Edge
1.0 Aug 1995
Opera
1.0 Jan 2006
Safari
1.0 Jan 2003

You may also like

 Back to <fieldset>

Last updated on Sep 30, 2023

Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

Guides