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

How to use html fieldset tag

silencement
silencementOriginal
2019-05-26 17:52:504452browse

How to use html fieldset tag

##In HTML, the 978aba46f1f86b43004f866ee64b6794 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 2b5469ab79cf842344327415c3b3bb95 element is generally Defined by the e911751791aa3ba95dc724e2fb905976 tag; the 2b5469ab79cf842344327415c3b3bb95 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.

2b5469ab79cf842344327415c3b3bb95 tag supports html global attributes and html event attributes

Format:

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

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>

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:
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
Previous article:How to use html font tagNext article:How to use html font tag

Related articles

See more