HTML的<figcaption>标签

(*-*)浩
(*-*)浩 原创
2020-01-09 15:13:14 2676浏览

HTML <figcaption> 标签

Internet Explorer 9, Firefox, Opera, Chrome 以及 Safari 支持 <figcaption> 标签。

注:Internet Explorer 8 以及更早的版本不支持 <figcaption> 标签。 ( 推荐学习:html教程 )

定义和用法

<figcaption> 标签定义 figure 元素的标题(caption)。

"figcaption" 元素应该被置于 "figure" 元素的第一个或最后一个子元素的位置。

浏览器支持

所有主流浏览器都支持 <figcaption> 标签。

HTML 4.01 与 HTML 5 之间的差异

<figcaption> 标签是 HTML 5 中的新标签。

实例

用作文档中插图的图像,带有一个标题::

<!DOCTYPE html>
<html>
<body>

<p>The Pulpit Rock is a massive cliff 604 metres (1982 feet) above Lysefjorden, opposite the Kjerag plateau, in Forsand, Ryfylke, Norway. The top of the cliff is approximately 25 by 25 metres (82 by 82 feet) square and almost flat, and is a famous tourist attraction in Norway.</p>

<figure>
  <figcaption>Fig.1 - The Pulpit Rock, Norway.</figcaption>
</figure>

</body>
</html>

以上就是HTML的<figcaption>标签的详细内容,更多请关注php中文网其它相关文章!

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。