0
考虑下面的一块标记:如何语义改善这个HTML片段
<a href="/description/item1">
<img src="item1.jpg">
<footer>
<section>
<h2 class="title">Bar Foo</h2>
<h3 class="subtitle">The end of the world</h3>
</section>
<section class="details">
<h4 class="name">Painted by Someone</h4>
<h5 class="id">123243552345</h5>
</section>
</footer>
</a>
反正,我一直与语义的困难。我认为上面的代码中并没有使用像段/页脚正确的元素(请纠正我,如果我错了!)所以,我可以把它改写为:再次
<a href="/description/item1">
<img src="item1.jpg">
<header>
<h2 class="title">Bar Foo</h2>
<h3 class="subtitle">The end of the world</h3>
</header>
<footer>
<h4 class="name">Painted by Someone</h4>
<h5 class="id">123243552345</h5>
</footer>
</a>
不过呢,应该不是锚(或包裹)一篇文章,在这里是正确的页脚,它只是关于图像的内容?有人可以用这段代码来帮助我,并指导我完成这个过程,使它在语义上正确/更好吗?任何意见或文件,将不胜感激!
看起来像一个与我无形的身影。 – 2014-10-27 16:21:35
你需要4个级别的标题为一个图像? – Alohci 2014-10-27 17:29:05