<legend>

总结

HTML的<legend>元素(也称为HTML的域说明元素(or HMTL
 Legend Field Element))代表一个用于表示它的父元素<fieldset>的内容的标题。

属性

这个元素只有全局属性

示例

 <form> 元素说明中关于 <legend>元素的例子.

规范

Specification Status Comment
HTML Living Standard
<legend>
Living Standard Definition of the legend element
HTML Living Standard Living Standard Suggested default rendering of the fieldset and legend elements
HTML5
<legend>
Recommendation  
HTML 4.01 Specification
<legend>
Recommendation (link)

浏览器兼容

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) 1.0 (1.7 or earlier) (Yes) (Yes) (Yes)
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) 1.0 (1.0) (Yes) (Yes) (Yes)

另请参阅