As far as I know, two links with the same URL don't hurt SEO, Google will only see and consider the first one, and SEO benefits will be passed only to this.
But what about, if I have two links, one with image and another with text (usual in article listing), which of these will be considered for SEO?
For example:
<a href="http://www.example.com/article1">
<img src="imgurl" alt="MyAwesomeArticle"/>
</a>
<a href="http://www.example.com/article1">MyAwesomeArticle</a>
In this case, will be considered only the first one? (that of course, will be bad for SEO, because anchor text is better than alt
attribute.)
Or Google (and others) will be smart enough to pick the link with the highest value (the one with the anchor text)?
… or something like this will be better?
<a href="http://www.example.com/article1">
<img src="imgurl" alt="MyAwesomeArticle"/>
<span>MyAwesomeArticle</span>
</a>