html fieldset标签怎么用

广告:宝塔Linux面板高效运维的服务器管理软件 点击【 https://www.bt.cn/p/uNLv1L 】立即购买

html fieldset标签怎么用

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

html5新增属性

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

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

name:fieldset的名称。

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

格式

<form><fieldset><legend>标题</legend>表单元素</fieldset></form>
登录后复制

实例

<!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标签怎么用的详细内容,更多请关注9543建站博客其它相关文章!

广告:SSL证书一年128.66元起,点击购买~~~

9543建站博客
一个专注于网站开发、微信开发的技术类纯净博客。

作者头像
admin创始人

肥猫,知名SEO博客站长,14年SEO经验。

上一篇:css如何写渐变的边框
下一篇:什么是libuv,浅析libuv中的事件轮询(Node核心依赖)

发表评论

关闭广告
关闭广告