Rules

Secret ingredients to quality software

Do you add attributes to your image HTML?

Last updated by SSW.Rules.SharePointExtractor on 22 Feb 2021 02:13 am (9 months ago) See History

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.

SSWLogo
Figure: Bad example - No attributes to the image

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

Adam CoganAdam Cogan
Tiago AraujoTiago Araujo

We open source. Powered by GitHub