1、<fieldset>标签对表单中的相关元素进行分组。

2、<fieldset>标签会在相关表单元素周围绘制边框。

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<meta charset="utf-8" />
</head>
<body>
<form>
<fieldset>
<legend>个人信息:</legend>
<p>姓名:<input type="text"name="name" /></p>
<p>年龄:<input type="text"name="age" /></p>
<p>职务:<input type="text"name="job" /></p>
<p>地址:<input type="text"name="address" /></p>
</fieldset>
</form>
</body>
</html>

相关文章:

  • 2021-06-06
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-27
  • 2022-02-24
  • 2021-09-23
  • 2021-11-09
  • 2021-09-20
相关资源
相似解决方案