如何使用html 5< caption>标记图片而不是表格 [英] how to use html 5 <caption> tag for images rather than tables

查看:58
本文介绍了如何使用html 5< caption>标记图片而不是表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在重做我的团队一直在研究的html.我想知道是否可以修改html 5标签.具体来说,我想将标签用于图片而不是表格.

I'm redoing the html my team has been working on.. and i was wondering if I can modify html 5 tags. Specifically I would like to use the tag for images rather than tables..

在w3schools中:

in w3schools:

*定义和用法:<标题>标签定义表格标题.<标题>标签必须在< table>之后立即插入标签.每个表格只能指定一个标题.通常,标题将在表格上方居中*.

如何从所有这些要求中删除此标签?

How can I strip this tag from all these requirements?

推荐答案

我认为您追求的是< figure> < figcaption> 标签,用于注释图像,就像您在教科书等中看到的那样.标题专门用于表格.

I think what you're after is the <figure> and <figcaption> tags, used to annotate images like you see in textbooks and the like. Caption is specifically for tables.

这篇关于如何使用html 5&lt; caption&gt;标记图片而不是表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆