How to use CSS to make the Image Alt tag Google friendly and people friendly
 by Casey Markee

How to use CSS to make your Image Alt tags more people friendly

  • Is there any way to make the text within the image Alt tag look more appealing to site visitors when an image is pre-loading or just fails to load for whatever reason.

Answer: Our tech guys thought that was an intriguing question with appealing possibilities, so they went looking for some way to do just what you described and here's what they came up with.

By placing the image within a <div> tag, it's possible to format the text that is located within the image alt tag. Here's a look at the code:

<div style='font-family:comic sans MS; color:red; font-size: 1.2em; line-height:1.2em; padding-bottom:30px; width:600px; padding-left:10px;'>

<img src="//d1tbpd1hx2blcp.cloudfront.net/images/DogAteIt_600x130.png" width="600" height="130" alt="*Guarantee -- We promise you'll get *more* than your money's worth. If not, cancel anytime -- even if it's the last day of your subscription ... just tell us *The dog ate it* ... You'll get a cheerful refund, and *thanks* for trying us out!" border="0" style='margin-left:-7px; margin-right:0px; margin-top:5px;' />

</div>

Of course, we would prefer to simply display the image as it is seen below:

*Guarantee -- We promise you'll get *more* than your money's worth. If not, cancel anytime -- even if it's the last day of your subscription ... just tell us *The dog ate it* ... You'll get a cheerful refund, and *thanks* for trying us out!

Already a member? Sign in here

Read the rest of this article,
and get all this for only $1.

  • The Search Engine Strategies Updates for February 2017
  • Ultimate Guide to Avoiding Google Penalties
  • The Complete Site Audit Checklist
  • The Definitive Local Search Audit Checklist
  • 100's of Strategic SEO Articles and Q&As
  • The Professional Engine Master's Chart
  • The Internet Marketing Glossary
  • The Ultimate Directory Submission List
  • The Pro SEO's Local Search Directory List
  • 16 years of SEN Archives
  • PLUS, as a Full SEN Basic Member, you'll be eligible for hundreds of dollars of discounts on SEO courses ranging from beginner to master on a variety of topics including organic search, local search, and social networking.

  • Your $1 Trial is good for 7 days at which time your card will be charged $29/mo unless you cancel before March 2nd, 2017

 This form is encrypted for your security