Home >Web Front-end >HTML Tutorial >What does the HTML

tag do?

What does the HTML
tag do?

(*-*)浩
(*-*)浩Original
2019-12-03 14:39:004495browse

HTML

Tag

What does the HTML <fieldset> tag do?

##All browsers support the
tag.

Definition and Usage

The fieldset element groups related elements within a form.                                                                        (Recommended learning:

html tutorial)

tag packages part of the form content and generates a set of related form fields.

When a group of form elements are placed inside a

tag, the browser displays them in a special way. They may have special borders, 3D effects, or even Create a subform to handle these elements.
tag has no required or unique attributes. The

tag defines the title for the fieldset element.

Example

Related elements in the combined form:

<!DOCTYPE HTML>
<html>

<body>

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

<p>如果表单周围没有边框,说明您的浏览器太老了。</p>

</body>
</html>

Rendering:

What does the HTML <fieldset> tag do?

The above is the detailed content of What does the HTML

tag do?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn