HTML fieldset tag
HTML <fieldset> encloses the the form elements (Form structure) in a block under a common name.
The common name is specified using legend element.
Specific uses
It encloses the form in a block under a common title.
Nested fieldset elements may also be used.
Related tags
Tags | Description |
---|---|
<form> | form element defines a form that collects the data of a person. |
| |
<input> | It represent an editable input field. |
| |
<legend> | It defines a caption or title for the form. |
|
Tag omission
Both starting and ending tags are necessary for the fieldset element.
Global Attributes
All the global attributes are applicable on the fieldset element.
Related Attributes
Attributes | Description |
---|---|
disabled | This attribute disables all the elements in the fieldset. None of the input is editable. |
| |
form | This attribute links fieldset element to a specific form. |
| |
name | This attribute gives a special or unique name to the fieldset element. |
|
Next Previous
Was this article helpful?
Email:
Message: