Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image "ALT" tags and SEO


Guest

Recommended Posts

I have a few images that are there only for page layout purposes -- for example, a 6x6-pixel white quarter-circle on a black background that's used to soften the upper-left corner of my main content area.

 

So, my question is -- would it be wise to add "ALT" tags to these images with a few of my site's important keywords, or would that be considered "black hat?"

Link to comment
Share on other sites

The main purpose of the alt tag is for the visually impaired. Your site needs to be designed for people first. With that said, google doesn't give much credit to alt tags. And then only if they are used in an image link. So adding text to those alt tags would not do you any good and may be considered spamming. However, note that the alt tags are required for proper validation. just set them to "".

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

  • 2 weeks later...

Alt tags are required to validate your pages as valid XHTML. That would be the only reason I would even add them, as *most* users are using image capable browsers, so alt tags aren't a necessity.

 

Jud

Link to comment
Share on other sites

OK slightly off topic

 

But can anybody tell me how to change the alt tag for the maufacturers image? as it stands it still says "Lets see what we have here" and i would like it to be the name of the maufacturer?

Link to comment
Share on other sites

OK slightly off topic

 

But can anybody tell me how to change the alt tag for the maufacturers image? as it stands it still says "Lets see what we have here" and i would like it to be the name of the maufacturer?

"Let's see what we have here" is from /catalog/includes/english.php Replace the code in the page you have that on which is probably /catalog/index.php that calls that phrase. Add code along the lines of

$manufacturers = mysql_query("SELECT manufacturers_name WHERE manufacturers_id = $_GET['manufacturers_id']");
echo "<img src=\".jpg\" alt=\"".$manufacturers."\">";

Of course a wouldn't be a bad idea to make sure you have error routine, but I don't have my code on this computer, but I bet the code is already called in a conditional routine.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...