使用html5为图像添加标题的正确方法是什么

Bra*_*adz 22 css html5 image caption

我正在尝试找出正确的方式来显示带有图像的标题,这里的东西是有意义的jfiddle链接,但我也看着图和figcaption似乎更好地服务于目的,我更喜欢,即:

<figure>
<img src="/animage.jpg" alt="an image">
<figcaption>This is the caption</figcaption>
</figure>
Run Code Online (Sandbox Code Playgroud)

我正在为博客新闻帖子建立一个模板,所以无论是重要还是正确使用我缺少的figcaption?

Dun*_*tie 17

我会使用该<figure>方法,因为它比div/span示例具有更多的语义含义.

http://jsfiddle.net/duncan/KYTWS/

相关的,虽然关于blockquotes,http: //alistapart.com/blog/post/more-thoughts-about-blockquotes-than-are-strictly-required