x
 
<!DOCTYPE html>
<html>
<body>
<h1>fieldset 元素</h1>
<form action="/demo/action_page.php">
  <fieldset>
    <legend>个人信息:</legend>
    <label for="fname">名字:</label>
    <input type="text" id="fname" name="fname"><br><br>
    <label for="lname">姓氏:</label>
    <input type="text" id="lname" name="lname"><br><br>
    <label for="email">Email:</label>
    <input type="email" id="email" name="email"><br><br>
    <label for="birthday">Birthday:</label>
    <input type="date" id="birthday" name="birthday"><br><br>
    <input type="submit" value="提交">
  </fieldset>
</form>
</body>
</html>