HTML5<fieldset>标签

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>

原文地址:https://www.cnblogs.com/melao2006/p/5080584.html