HTML < fieldset > Tag - Learn About Website | DaddyFile

0

HTML <fieldset> Tag

Example

Group related elements in a form:

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

Definition and Usage

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

Tips and Notes

Tip: The <legend> tag defines a caption for the <fieldset> element.

Differences Between HTML 4.01 and HTML5

HTML5 has added new attributes for <fieldset>.

Post a Comment

 
Top