<li class="vcard">
<a class="url" href="/about/us/">
<img class="photo" alt="some" src="/img/nicething.png">
<h3>hello</h3>
</a>
<p class="role meta">Something here</p>
</li>
我看到了这段代码,经过验证,它在w3c HTML5验证中返回了“有效”。
我以前认为我们不能在anchor
标签内部放置h3
标签。
看起来如果我们将anchor
标签的属性设为display:block;
,那么这种情况也是允许的?