0

For images for my website I always use 1 thumbnail and 1 full size image.

I'd very much like to apply alt text for my full size images, but I don't know how, since the full size image is linked with <a> and isn't an <img> object.
It's for SEO reasons, so that the full size images will be more easily searchable through Google image search.

How can I apply alt text for my full size images? I'm using highslide for displaying images at the moment, but perhaps there's another alternative that can give me what I'm looking for.

This is the site that I'm referring to: http://www.easterislandtraveling.com/easter-island/gallery/

4

2 に答える 2

0

This is really a question about the highslide library, which you are using to create the tags when the thumbnails are clicked. Checking the documentation at http://highslide.com/ref/ there doesn't seem to be an easy way of controlling the alt text using that library. You could use one of the events to manipulate the generated HTML yourself, perhaps onBeforeExpand.

If you are only doing this for SEO reasons, then I would suggest it is unnecessary. Doing a Google image search for the alt text of your first image shows that Google are already indexing the higher resolution version. Clicking 'visit page' takes you to the page you gave in your question. See https://www.google.co.uk/search?q=%22Rano+Raraku+moai+factory+with+man+sitting%22+site:easterisland.travel&tbm=isch

于 2015-08-25T22:04:15.813 に答える
-1

Could you use the title attribute on the <a> tag instead?

http://www.w3schools.com/tags/att_global_title.asp

于 2012-11-06T13:15:05.540 に答える