Document checking completed. No errors or warnings to show.
But when it was talking about the images, I don’t fully understand what it meant by:
The following images have textual alternatives. Please review that the textual alternatives make sense considering the purpose of the image in the context of the page and that phrases like “Image of …” are avoided.
Note that iconic images that are redundant with text next to them or purely decorative should have alt="" instead.
What it’s referring to is: (all of them)
-img src=“2017-MtAdams_TahklakhLake_sky-975px.jpg” alt=“Takhlakh Lake - Mt Adams” title=“Sunrise at Takhlakh Lake under Mt Adams”-
Do I have the"alt" and “title” description backwards?
You need to remember that this is an automated checking tool, and can only check that you have alt text in place as required for accessibility: it can’t check whether that text makes sense or is correct. So it’s just reminding you to check that for yourself.
While you must have alt text for any image which is not purely decorative, you don’t need to have a title; that’s up to you.
Actually I’m not done with this page yet (my 3rd gallery) I haven’t filled the “title” tags yet which explains the photos like I did on my first two galleries. Check my home page source and see what you think… or do I need to change that too? https://moskovita-photography.com/
The title tag attribute is really not meant for images but for links to get extra info about the target.
If you like, you could implement CSS tool-tips to show the alt text on hover. The CSS tool-tip is instant compared with the title attribut that is delayed and often not show because the mouse have moved elsewhere.
You can style the tool tip as you like, even look like the title does. What you can’t do is hinder the title to show too (but delayed) if the title attribute is not empty.
I’ll have to try this… it will take awhile as I have 315 photos in those three galleries I have so far. Where to I get the CSS tool-tips? On this forum?
Does this mean I can eliminate the title attribute ? Wouldn’t that hurt google rankings?
Boy, I have my work cut out for me and I thought I was almost done. LOL
Now I’ll have to go delete all 315 title attributes and add to the Alt text I’ve got.
So I can take my descriptions in the title attributes and place them in the “Alt” instead?
Whew! Give me a week, as I have a lot going on with new house I bought.
I appreciate all the help and advice I’ve gotten here!
Or do I replace the "hover’ that’s used for the “title attribute” in header?
If so, which ones? I can’t seem to find any with "title attributes for hovering?
That won’t work Erik as generated content is not defined (doesn’t work) for replaced elements like images. It would only work if the link was broken and the replaced content was unavailable and then it would show the pseudo content (but that would be pointless because the alt attribute text is already shown when the image is missing).
You won’t be able to have the hover on the image unless you have a tightly wrapping parent (such as an anchor) and use the title text from the anchor as the hover text.