empty and alt-tagged images

#589586
  • Resolved Giuliano Ciolino
    Rank Math free

    From the results of a scan, I see many empty and alt-tagged images. What can I do to avoid alt tags on decorative images? These will be replaced by images. I use Optimole.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Thank you for contacting us.

    Usually, this type of decorative element should be generated using a CSS background to avoid treating it as an “image” element.

    However, if you wish to include it as an image tag, you can simply add an attribute role="presentation" as this is used to remove semantic meaning from an element and any of its related child elements.

    As for the alt tags, since all images required alt tags for it, you can just add an empty alt tag for it alt=””, this may cause Rank Math to generate a prompt or error in the SEO Analysis but you can ignore it. Please refer to this guide: https://www.portent.com/blog/design-dev/decorative-images-how-to-identify-and-tag-them-for-accessibility.htm

    Please note that you need to find a balance that works well for both accessibility and SEO. Meaning, you can ignore the test in validator.w3.org as these tests are just guidelines and one does not need to follow them religiously. The Search engines will still be able to recognize the type of image you used for your website.

    Hope that helps and please do not hesitate to let us know if you need my assistance with anything else.

    It was a plugin.

    Hello,

    Glad that everything has been sorted out.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The ticket ‘empty and alt-tagged images’ is closed to new replies.