<legend> 元素为 <fieldset> , <figure> 或 <details> 元素定义标题。
代码
<form> <fieldset> <legend>个人基本信息</legend> 姓名:<input type="text" /><br /> 年龄:<input type="text" /> </fieldset> </form>
执行结果
<legend>标签在HTML5与HTML4.01之间存在如下差异
外部链接