Skip to content

FAQ

Frequent questions about image links: how alt works, whether alt is required, and how to handle decorative images.

Is alt required for image links?

For accessibility, yes. For SEO, it is not strictly required — Google can rank an image without it if surrounding text is descriptive — but a missing alt on a link means the anchor-text signal is lost.

What should alt say?

It should describe the link target, not the image. An image linking to /product/red-shoe/ should say "Red running shoe", not "Photo of a shoe".

How do I handle decorative images?

Use alt="" (empty, not missing). Empty alt tells screen readers to skip the image, which is what you want for decoration. But do not put an empty alt on a link.

Does alt affect image search ranking?

Yes. The alt is the primary textual signal for Google Images; without it, Google falls back to the filename and surrounding context.