HTML的<figcaption>标签

互联网 20-1-9
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>标签的详细内容,更多内容请关注技术你好其它相关文章!

来源链接:
免责声明:
1.资讯内容不构成投资建议,投资者应独立决策并自行承担风险
2.本文版权归属原作所有,仅代表作者本人观点,不代表本站的观点或立场
标签: html
上一篇:php获取远程图片并下载保存到本地的方法分析 下一篇:HTML的<option>标签在哪里用

相关资讯