如何使用html 5 <caption>标签来表示图像而不是表格

abb*_*ood 3 tags html5 caption

我正在重做我的团队一直在努力的HTML.我想知道我是否可以修改html 5标签.具体来说,我想使用标签而不是表格.

在w3schools:

*Definition and Usage: The <caption> tag defines a table caption. The <caption> tag must be inserted immediately after the <table> tag. You can specify only one caption per table. Usually the caption will be centered above the table*.

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

Dun*_*zzz 8

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