这篇翻译不完整。请帮忙从英语翻译这篇文章。
HTML <figcaption> 元素 是与其相关联的图片的说明/标题,用与描述其父节点 <figure> 元素里的其他数据。这意味着 <figcaption> 在<figure> 块里是第一个或最后一个。同时 HTML Figcaption 元素是可选的;如果没有该元素,这个父节点的图片只是会没有说明/标题。
| Content categories | None. |
|---|---|
| Permitted content | Flow content. |
| Tag omission | 不允许,开始标签和结束标签都不能省略。 |
| Permitted parent elements | A <figure> element; the <figcaption> element must be its first or last child. |
| DOM interface | HTMLElement |
Attributes
This element only includes the global attributes.
Examples
Please see the <figure> page for examples on <figcaption>.
Specifications
| Specification | Status | Comment |
|---|---|---|
| WHATWG HTML Living Standard <figcaption> |
Living Standard | |
| HTML5 <figcaption> |
Recommendation |
Browser compatibility
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | 8 | 4.0 (2.0) | 9.0 | 11.10 | 5.1 |
| Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | 3.0 | 4.0 (2.0) | 9.0 | 11.0 | 5.1 (iOS 5.0) |
See also
- The
<figure>element.