Image elements do not have [alt] attributes / FIX

Hello !
I just have created a movie website, i optimized the site and i have a score of 92/100 seo. I cannot get 100 because " Image elements do not have [alt] attributes " i put text on any image, i asked even the guy who created template. he said it;s not a problem to leave it like that…with other template google pagespeed can see my alt attributes. i tried with plugins…but same problem. Any ideea how can i fix it ? Sorry for bad english.
Please Help.

You will need to add the alt attribute to the images on your site. In the attribute’s value, describe the image.

<img alt="The Beekeeper 2024" loading="lazy" src="https://filmflix.ro/wp-content/uploads/2024/02/the-beekeeper-2024-filmflix-160x240.jpg.webp" class="imglazy lazy-loaded" data-src="https://filmflix.ro/wp-content/uploads/2024/02/the-beekeeper-2024-filmflix-160x240.jpg.webp">

The text overlaid on the images is not the same thing as alt text, as is is not seen as related to the image.
For visible text that relates to the image you may use a <figcaption> element, though you would need to alter the HTML structure to have the caption within the figure element.

1 Like

to be honest i don;t really know how to do that…

How is the site made, is it some kind of CMS? Do you have access to edit the HTML code?

yes i do have access. wordpress + template

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.