Home > Web Front-end > HTML Tutorial > How to use html fieldset tag

How to use html fieldset tag

silencement
Release: 2019-05-27 10:32:04
Original
4455 people have browsed it

How to use html fieldset tag

##In HTML, the tag is used to group related elements in the form, and a border will be set around the related form elements; the title of the
element is generally Defined by the tag; the
tag is supported by all major browsers.

html5 New attribute

disabled: Specifies that related form elements in this group should be disabled.

form: Specifies one or more forms to which the fieldset belongs.

name: The name of the fieldset.

tag supports html global attributes and html event attributes

Format:

<form>
<fieldset>
<legend>标题</legend>
表单元素
</fieldset>
</form>
Copy after login

Instance

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/hmtl; charset=utf-8" ><!--PHP中午乱码处理-->
<title>html < fieldset>标签_PHP笔记</title>
</head>
<body>
<form>
<fieldset>
<legend>登陆</legend>
用户名: <input type="text"><br>
密码: <input type="password"><br>
Email: <input type="text">
</fieldset>
</form>
</body>
</html>
Copy after login

The above is the detailed content of How to use html fieldset tag. 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