html fieldset标签怎么用


本文摘自PHP中文网,作者silencement,侵删。

在html中,<fieldest>标签是用来将表单内的相关元素分组,相关表单元素周围将会被设置边框;<fieldset> 元素的标题一般由<legend>标签来定义;<fieldset>标签被所有主流浏览器支持。

html5新增属性

disabled:规定该组中的相关表单元素应该被禁用。

form:规定fieldset所属的一个或多个表单。

name:fieldset的名称。

<fieldset>标签支持html全局属性和html事件属性

格式

1

2

3

4

5

6

<form>

<fieldset>

<legend>标题</legend>

表单元素

</fieldset>

</form>

实例

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

<!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>

以上就是html fieldset标签怎么用的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

Html中怎么隐藏列表

Html中怎么设置为email链接

可替换元素是什么?(附示例)

Html的<thead>标签

Html学习之Html列表介绍(代码实例)

Html入门必知

Html是编程语言吗

Html怎么让文字居中

Html5中table的意思是什么

vue面试题的介绍(附答案)

更多相关阅读请进入《Html》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...