2

You can put images that are just decorative into a HTML document like this, by setting their alt text to nothing:

<img src="decorative.png" alt="" />

This means that screen readers won't announce the image, and that if the image doesn't load, it won't show anything.

My question is, will Google Images ignore these images as well, and will it hide them in search results?

1 Answer 1

4

will Google Images ignore these images as well, and will it hide them in search results?

No, these images can still appear in Google Image Search.

If you specifically want to hide these images from Google Image Search then consider blocking them in robots.txt. Ideally, these images should be stored in a common location to make this task easier.

For example:

User-agent: Googlebot-Image
Disallow: /images/decoration/

Reference:
https://support.google.com/webmasters/answer/35308?hl=en

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.