Truth Spine proof: Google recommends always giving images a fallback URL in the src attribute
Problem: Image addresses are filled in by a script. Truth Spine record I-0141: https://ursy.com/truth-spine/I-0141/
Caption. Google recommends always giving images a fallback URL in the src attribute, because some browsers and crawlers miss other attributes. Truth Spine record I-0141.
What this picture proves. The problem is 'Image addresses are filled in by a script'. Google Search Central's 'Image SEO best practices' guide says some browsers and crawlers don't understand responsive image attributes, and "We recommend that you always specify a fallback URL using the src attribute." Images whose address sits only in data-src or srcset have no such fallback, which backs the problem.
What the picture shows. At the top is a pale grey address strip with small dark text 'URSY.com saved copy · read 2026-12-01'; under it a white rounded bar holds https://developers.google.com/search/docs/appearance/google-images inside a thin red rectangle. Below, the saved Google page shows a white content card on a light grey background at the left and right edges. The card opens with a light grey code panel holding the line '
A golden retriever puppy
'. Then come the headings 'Use an image sitemap' and 'Responsive images' in a larger, light-weight black sans-serif, each followed by dark grey sans-serif paragraphs with plain blue links such as 'submitting an image sitemap', 'verify ownership' and 'guide to responsive images', and code words such as '', '', 'srcset' and 'img' in small monospace on very light grey. In the paragraph beginning 'Web pages use the element', a thin red rectangle surrounds 'We recommend that you always specify a' at the end of the second line, and a second red rectangle surrounds 'fallback URL using the src attribute.' at the start of the third line, with 'src' in monospace and the full stop inside the box. Below is a wide light grey code panel with a monospace 'A golden retriever puppy
- Use an image sitemap
- You can provide the URL of images we might not have otherwise discovered by submitting an image sitemap.
- Unlike regular sitemaps, you can include URLs from other domains in the elements of the image sitemaps.
- This lets you use CDNs (content delivery networks) to host images. If you're using a CDN, we encourage you to verify
- ownership of the CDN's domain name in Search Console so that we can inform you of any crawl errors that we may find.
- Responsive images
- Designing responsive web pages leads to better user experience, since people can access them across a plethora of
- device types. Refer to our guide to responsive images to learn about the best practices for handling images on your
- website.
- Web pages use the element or the srcset attribute of an img element to specify responsive images.
- However, some browsers and crawlers don't understand these attributes.
- We recommend that you always specify a (boxed in red)
- fallback URL using the src attribute. (boxed in red)
- The srcset attribute allows specifying different versions of the same image, specifically for different screen sizes. For
- example:
-
- The element is a container that is used to group different versions of the same image. It offers a
- fallback approach so the browser can choose the right image depending on device capabilities, like pixel density and
- screen size. The picture element also comes in handy for using new image formats with built-in graceful degradation for
- clients that may not yet support the new formats.
- Per section 4.8.1 of the HTML Standard, make sure that you provide an img element as a fallback with a src attribute
- when using the picture element using the following format:
- Website problem · Images and media · official source: Google Search Central
- Image addresses are filled in by a script
- Source and record: ursy.com/truth-spine/I-0141/
- URSY.com TRUTH SPINE FACT RECORD I-0141
- Every fact on URSY.com is recorded with its source in the URSY.com Truth Spine. Explore them all at ursy.com/truth-spine
Where it came from.
- Source: Google Search Central, "Image SEO best practices": https://developers.google.com/search/docs/appearance/google-images
- Saved by URSY.com on 1 December 2026 (sha256 73f399f717b0699c4868f7c4b332dd1fc121573005d282df690e3d7fcda42d4a).
- Look for public archive copies (a search, not a copy saved by URSY.com): https://web.archive.org/web/2026*/https://developers.google.com/search/docs/appearance/google-images
The problem, explained, with how to fix it: https://ursy.com/issues/image-address-script-only/
Every fact on URSY.com is recorded with its source in the URSY.com Truth Spine: https://ursy.com/truth-spine/
URSY.com - www.ursy.com