top of page

What is the use of HTML <fieldset> Tag

  • Writer: neha chaudhary
    neha chaudhary
  • Aug 1, 2018
  • 1 min read

The HTML <fieldset> tag represents a group of form elements in an HTML document.

Syntax

The <fieldset> tag is written as <fieldset></fieldset> with the grouped form controls inserted between the start and end tags.

You can use the disabled attribute to disable all child form controls within the <fieldset> element. You can also use the form attribute to associate the element with a <form> element on the same document.


Example:-

<fieldset form="myForm" disabled>

...write whatever you want your form to be like...

</fieldset>

 
 
 

Recent Posts

See All
Why do we use HTML <!doctype> Tag

The HTML <!doctype> tag is used for specifying which language and version the document is using. This is referred to as the document type...

 
 
 
Responsive vs. Adaptive vs. Mobile

Responsive and adaptive web design are closely related, and often transposed as one in the same. Responsive generally means to react...

 
 
 

Comments


© 2017 by Neha Chaudhary. 

bottom of page