UK [fi:ld set] US [fild s?t]

[電] OUTDOOR MACHINES

html fieldset tag syntax

Function: Can group related elements within the form.

Description: <fieldset> tag packages part of the form content to generate a set of related form fields. When a set of form elements is placed inside a <fieldset> tag, the browser displays them in a special way. They may have special borders, 3D effects, or even create a subform to handle the elements.

Note: The<fieldset> tag has no required or unique attributes. All browsers support the <fieldset> tag.

html fieldset tag example

<!DOCTYPE HTML>
<html>

<body>

<form>
  <fieldset>
    <legend>健康信息</legend>
    身高:<input type="text" />
    體重:<input type="text" />
  </fieldset>
</form>

<p>如果表單周?chē)鷽](méi)有邊框,說(shuō)明您的瀏覽器太老了。</p>

</body>
</html>

Run instance ?

Click the "Run instance" button to view the online instance