<figcaption>: The Figure Caption element

<figcaption> HTML 元素表示描述其父 <figure> 元素的其余内容的标题或图例,为 <figure> 提供 accessible description

¥The <figcaption> HTML element represents a caption or legend describing the rest of the contents of its parent <figure> element, providing the <figure> an accessible description.

Try it

属性

¥Attributes

该元素仅包含 全局属性

¥This element only includes the global attributes.

示例

¥Examples

有关 <figcaption> 的示例,请参阅 <figure> 页面。

¥Please see the <figure> page for examples on <figcaption>.

技术总结

¥Technical summary

内容类别 没有任何。
允许的内容 流量内容.
标签遗漏 无,开始和结束标记都是强制性的。
允许的父级 <figure> 元素; <figcaption> 元素必须是其第一个或最后一个子元素。
隐式 ARIA 角色 没有对应的角色
允许的 ARIA 角色 group, none, presentation
DOM 接口 HTMLElement

规范

Specification
HTML Standard
# the-figcaption-element

¥Specifications

浏览器兼容性

BCD tables only load in the browser

¥Browser compatibility

也可以看看

¥See also