What does the HTML
tag do?

(*-*)浩
Release: 2019-12-03 14:39:00
Original
4347 people have browsed it

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>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!