我明白文章标签是“独立的内容节”,具体信息请参考www.w3.org/wiki/HTML/Elements/article。
我有一个只包含博客文章的页面。该博客文章顶部有一张图片和标题说明(这张图片用来说明博客文章中的内容)。这个图片和标题说明应该放在article标签内还是外面呢?
图片:
博客文章简述:
我有一个只包含博客文章的页面。该博客文章顶部有一张图片和标题说明(这张图片用来说明博客文章中的内容)。这个图片和标题说明应该放在article标签内还是外面呢?
图片:
<img src="1.png">
<div>Caption of the image</div>
博客文章简述:
<article>
<h1>Title of the post</h1>
<div>Last Updated: 2016-01-07</div>
<div>
<p>This is the body of the post</p>
</div>
<p>Author of the post</p>
</article>