温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

HTML的figcaption标签怎么用?

发布时间:2020-05-22 17:54:39 来源:亿速云 阅读:186 作者:鸽子 栏目:web开发

HTML <figcaption> 标签

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

注:Internet Explorer 8 以及更早的版本不支持 <figcaption> 标签。    

定义和用法

<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>标签的详细内容,更多请关注亿速云其它相关文章!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI