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 big标签怎么用

Html实现美化上传文件样式

Html footer标签怎么用

Html的计算机代码元素有哪些

Html如何实现tab页面切换

Html 可以用什么软件进行开发?

sublime怎样快速的创建Html头部代码

Html中button标签的用法

Html文件中include文件内容应该如何使用

Html <b>加粗与<strong>加粗标签区别

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




打赏

取消

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

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

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

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

评论

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