4

I have a local news site, on the homepage, I link to the thumbnail and the post title.

Is it better for SEO to have single links or separate links?

We can explain this with an example;

Single link =

<a href="/article.html">
   <img src="/article.jpg" alt="article" />
   <span>article title</span>
</a>

Separate link to image and title

<a href="/article.html">
   <img src="/article.jpg" alt="article" />
   </a>

<a href="/article.html">
 <span>article title</span>
</a>

1 Answer 1

4

With the single link option search engines will treat the image's ALT text as if it is the anchor text of a traditional link.

Ex: <a href="url">This is Anchor Text</a>

Possible implications:

  • The ALT text of an image should be treated as a description of the image, not what a user should expect if they click on it.
  • This rules out the strategic use keywords, because ALT tags are an accessibility option for visually impaired users.
  • If the description of the image doesn't match with what the article is really about, that doesn't help you. Regardless of keywords it would be nice to have the anchor text be the story's headline.

With the separate link to image and title option you link to the article twice.

That is totally fine, except I believe Google still only counts the anchor text of the first link that appears in the html.

Here's an article on this from Rand Fishkin back in '08, I can't find any sources that say this has changed.


Make new cards?

I'd recommend re-doing your cards so there's no conundrum. This way you get to have your cake and eat it too!

Here's a pretty good example:

example of an html/css card

<div class="row">
    <div class="col s12 m7">
      <div class="card">
        <div class="card-image">
          <img src="images/sample-1.jpg" alt="Alt text here"> 
          <span class="card-title">Card Title</span>
        </div>
        <div class="card-content">
          <p>I am a very simple card. I am good at containing small bits of information.
          I am convenient because I require little markup to use effectively.</p>
        </div>
        <div class="card-action">
          <a href="[URL]">This is a link</a> <!-- Anchor text -->
        </div>
      </div>
    </div>
  </div>

That example is from a framework called materialize.css FYI.


Ultimately, I would say that it doesn't really matter that much in the grand scheme of things. Regardless of the route you take, this won't impact your rankings much. There are many more important things to worry about.

5
  • 2
    You are correct, last time I checked Google does only use the anchor text of the first link. Although in the case of internal links, it probably doesn't matter. In my experience, the anchor text of internal links doesn't affect SEO. Its really only external link anchor text that seems to change relevance. Oct 6, 2021 at 1:07
  • 1
    @StephenOstermiller Thanks for confirming that. I've always viewed anchor text on internal links as a way to indicate to Google which pages of your site are important, as well as what they are about. But I don't have any testing data to prove one way or the other. External definitely matters most. Oct 6, 2021 at 1:16
  • 2
    For a link that has both anchor text and an image, as in OP's "single link" example, I'd think Google would prioritize the anchor text over the image's alt text, no? Otherwise for links with icons, Google could read a link's text as something like "icon of a book" instead of using the perfectly good anchor text. Oct 6, 2021 at 1:25
  • 1
    The number of internal links to a page tells Google which pages on your site are important relative to other pages on your site, but as far as I can tell, Google treats internal links very differently from external links as far as anchor text goes. The anchor text of internal links doesn't count for anything that I've been able to measure in testing. Oct 6, 2021 at 1:38
  • 1
    @MaximillianLaumeister You'd think so, but I can't find evidence of it. For the sake of argument, let's use socials as an example. Google is likely very experienced with them. If the alt text is "Facebook icon", that's pretty definitive. Many times anchor text isn't provided...yeah? Just the icon and the href. Oct 6, 2021 at 3:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.