公告:魔扣目录网为广大站长提供免费收录网站服务,提交前请做好本站友链:【 网站目录:https://www.morko.net 】, 免友链快审服务(50元/站),
我们使用
<fieldse>…..</fieldset>
登录后复制
以下是使用<legend>标签在<fieldset>标签内对HTML表单中的数据进行分组的示例 –
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="description" content="meta tag in the web document"> <meta name="keywords" content="HTML,CSS"> <meta name="author" content="lokesh"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <form> <fieldset> <legend>Employee Details</legend> Employee Name<br> <input type="text" name="Ename"> <br> Employee ID<br> <input type="text" name="Eid"> <br> Employee Address<br> <input type="text" name="Eid"> <br> </fieldset> </form> </body> </html>
您可以尝试运行以下代码来对HTML表单中的数据进行分组 –
<!DOCTYPE html> <html> <body> <form> <fieldset> <legend>Student Information:</legend> Student Name:<br> <input type="text" name="sname"> <br> Student Subject:<br> <input type="text" name="ssubject"> <br> </fieldset> </form> </body> </html>
以上就是我们如何在HTML表单中对数据进行分组?的详细内容,更多请关注www.92cms.cn其它相关文章!
网友整理
注册时间:
网站:5 个 小程序:0 个 文章:12 篇
网站
小程序
文章
会员
数独一种数学游戏,玩家需要根据9
您可以通过答题星轻松地创建试卷
各种考试题,题库,初中,高中,大学四六
记录运动步数,积累氧气值。还可偷
每日养生,天天健康
通用课目体育训练成绩评定