fieldset disabled Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:fieldset

Description

The disabled attribute is a boolean attribute to set if a group of related form elements (a fieldset) should be disabled.

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

The following code shows how to Disable a group of related form elements:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<form>
  <fieldset disabled>
    <legend>Personalia:</legend>
    Name: <input type="text"><br>
    Email: <input type="text"><br>
    Date of birth: <input type="text">
  </fieldset>
</form><!--from w  w  w  .java2 s  .co  m-->

</body>
</html>

Related Tutorials