HTML <legend> 标签

转自:https://www.w3cschool.cn/htmltags/tag-legend.html

 1 <!DOCTYPE HTML>
 2 <html>
 3 
 4 <body>
 5 
 6 <form>
 7   <fieldset>
 8     <legend>健康信息</legend>
 9     身高:<input type="text" />
10     体重:<input type="text" />
11   </fieldset>
12 </form>
13 
14 <p>如果表单周围没有边框,说明您的浏览器太老了。</p>
15 
16 </body>
17 </html>
原文地址:https://www.cnblogs.com/sharpest/p/7325999.html