How to use html fieldset tag
Release: 2019-05-27 10:32:04
Original
4455 people have browsed it
##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!
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
Latest Articles by Author
2020-02-27 16:50:07
2020-01-30 22:49:41
2020-01-30 22:43:08
2023-04-08 11:32:02
2023-04-08 11:24:01
2023-04-08 11:00:01
2023-04-08 10:56:02
2023-04-08 10:54:02
2023-04-08 10:36:01
2023-04-08 10:34:01