Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding ALT tags to row/column background

Status
Not open for further replies.

lmarshall

MIS
Jun 11, 2002
108
US
I am creating a web site that uses a lot of images as the background for columns and rows in a table. I've been told that by having them as a background instead of an actual image they load faster. I'm working on promoting my site and would like to use my keywords as much as possible because I don't have very much content on the hompage. Is there any way I can create ALT tags in the <TD> tags to add description of my background images?
 
I don't think there is anyway of adding alt tags to background images but you can use the title tag like this
<td title=&quot;Some text here&quot;> and this text will display when the person rests the cursor over that table cell.

I'm not sure how this effects search engine rankings.

MrBelfry

MrBelfry
 
Another alternative is to create a 1x1 transparent gif. Then do something like

<td><img src=&quot;images/1x1transparent.gif&quot; width=&quot;100%&quot; height=&quot;100%&quot; alt=&quot;Keywords go here&quot;></td>

I am not sure how 'bots treat this as it is a transparent image and may consider it spam (like white text on white background) but it works !

The only problem is if you have content within the td tags

Cheers from down under

Nige
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top