← All languages
HTML tag of the day
Random

<fieldset>

Groups related form controls together, often with a visible border.

Description

The `<fieldset>` tag is an HTML element used in web documents. It can be combined with attributes to control semantics, behavior, and presentation in supported user agents.

Arguments

NameDescriptionOptional
attributes Optional global or element-specific attributes for `<fieldset>`. Yes

Example

<fieldset>
  <legend>Personal Info</legend>
  <label>Name: <input type="text"></label>
</fieldset>

Reference