<

HTML <fieldset> Tag

The <fieldset> tag is used to group related elements in a form.The <fieldset> tag draws a box around the related elements.

Attributes



Attribute Value Description
disabled disabled Specifies that a group of related form elements should be disabled
form form_id Specifies one or more forms the fieldset belongs to
name text Specifies a name for the fieldset


Example




<!DOCTYPE html>
<html>
<body>

<form>
 <fieldset>
  <legend>Personal Info:</legend>
  Name: <input type="text"><br>
  Email: <input type="text"><br>
  Date of birth: <input type="text">
 </fieldset>
</form>

</body>
</html>















© copyright 2017-2022 Completedone pvt ltd.