根据标准,以下哪一项(如果有的话)是正确的?
<!-- Do the links surround the target link object -->
<a href=''><p>Link Description</p></a>
<!-- or does the object type encapsulate the link-->
<p><a href=''>Link Description</a></p>
Run Code Online (Sandbox Code Playgroud)
我知道它们的功能相同,但这是一个最佳实践/标准问题.这也适用于ul/ol.
我认为有利于<a>内部标签的唯一原因是:
<p>This is a longer sentence with a <a href=''>short link here</a></p>
谢谢!