Hi,
I read always that the "alt" of the images are very important, specially when they are linking to somewhere, cause this "alt" can work as an anchor text.
But my site has images made with div tags, like <a href="link.."><div id="suchimage"></div></a>
Is there a way for me to accomplish "alt" information for those images and menus, or should I put the images in other way, not by the div tag?
Thank you.
Page 1 of 1
How to deal with "alt" in images made with Div? My images are <div> tags only
#2
Posted 05 December 2011 - 08:45 PM
Reverie, on 05 December 2011 - 08:33 PM, said:
Hi,
I read always that the "alt" of the images are very important, specially when they are linking to somewhere, cause this "alt" can work as an anchor text.
But my site has images made with div tags, like <a href="link.."><div id="suchimage"></div></a>
Is there a way for me to accomplish "alt" information for those images and menus, or should I put the images in other way, not by the div tag?
Thank you.
I read always that the "alt" of the images are very important, specially when they are linking to somewhere, cause this "alt" can work as an anchor text.
But my site has images made with div tags, like <a href="link.."><div id="suchimage"></div></a>
Is there a way for me to accomplish "alt" information for those images and menus, or should I put the images in other way, not by the div tag?
Thank you.
Erm, there is no img tag in the above code? Where are you supposing to put the image?
#3
Posted 05 December 2011 - 08:49 PM
The image goes as the "background-image" of the div, in the css file.
Like #suchimage {background:... }
I find no room for the "alt"
Like #suchimage {background:... }
I find no room for the "alt"
#4
Posted 05 December 2011 - 08:52 PM
Reverie, on 05 December 2011 - 08:49 PM, said:
The image goes as the "background-image" of the div, in the css file.
Like #suchimage {background:... }
I find no room for the "alt"
Like #suchimage {background:... }
I find no room for the "alt"
Then it isn't classed as an image per se, and requires no alt tag. I think you maybe getting confused with title, as in;
<a href ="http://www.mylink.com" title="my link title">my link </a>
Which will give a nice hover title when hovered over a link.
#5
Posted 05 December 2011 - 09:20 PM
Thanks. Specifying better my doubt: It helps for seo if the anchor text of my link has a keyword. Like <a href=".."> keyword </a>
If the link is an image, I believed the "alt" could work in the same way. Or it doesnt?
Using a "title" in the <a> that is a keyword helps for seo?
If the link is an image, I believed the "alt" could work in the same way. Or it doesnt?
Using a "title" in the <a> that is a keyword helps for seo?
#6
Posted 05 December 2011 - 09:29 PM
Reverie, on 05 December 2011 - 09:20 PM, said:
Thanks. Specifying better my doubt: It helps for seo if the anchor text of my link has a keyword. Like <a href=".."> keyword </a>
If the link is an image, I believed the "alt" could work in the same way. Or it doesnt?
Using a "title" in the <a> that is a keyword helps for seo?
If the link is an image, I believed the "alt" could work in the same way. Or it doesnt?
Using a "title" in the <a> that is a keyword helps for seo?
The ALT tag is supposed to be used to describe an image should the browser not show it, or be read by a screen reader. For example, if it is a picture of a man walking a dog, then really the ALT tag should be something like "man walking a dog". It isn't really supposed to be used for SEO purposes and abuse of the ALT tag by keyword stuffing could potentially harm your site.
Saying that, it doesn't hurt to have a well placed keyword IF it is relevant and descriptive.
I have always found the use of the title tag in links helpful, not just for SEO, but visually as well. Sometimes you just have to use a "read more" or "here" anchor text (I try not to!) and by accompanying that with a descriptive title gives the end user a bit more info and what that link will actually open up.
Share this topic:
Page 1 of 1
Help














