转自: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>

 

posted on 2017-08-09 16:21  Sharpest  阅读(134)  评论(0编辑  收藏  举报