Home
Do you add attributes to your image HTML?
  v2.0 Posted at 12/11/2015 12:29 AM by Tiago Araujo

What do you do when you want images to link to your site? In the case of images, Google will look for the "alt" text and factor this into the search results. So when you ask someone else to link to your site with an image you should always add attributes like "alt" and "title" into the code. Here's an example. 

Hold the cursor over the image below and see what happens.

<a href="/ssw/Default.aspx">
      <img src="logo.png" />
</a>

​Figure: Bad example​ - No attributes to the image
SSW Logo

<a href="/ssw/Default.aspx">
      <img src="logo.png" alt="SSW Logo" title="SSW Logo" />
</a>

​Figure: Good example - Search engines will index this text. Scroll over

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address:

    Comments:

    Note: Social Media login for Yotpo is not working in IE or Safari, please use Chrome. We are waiting for Yotpo to fix it.