# 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 '<div style="background-image:url(puppy.jpg)">A golden retriever puppy</div>'. 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 '<image:loc>', '<picture>', 'srcset' and 'img' in small monospace on very light grey. In the paragraph beginning 'Web pages use the <picture> 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 '<img' example using 'srcset', 'sizes', 'src' and 'alt' values for 'maine-coon-nap' pictures. Two more paragraphs follow, with a blue link 'section 4.8.1 of the HTML Standard'; the last line meets the label. There are no logos on the page part. The label is a light blue band with a blue top line; on the left a grey line 'Website problem · Images and media · official source: Google Search Central', the title 'Image addresses are filled in by a script' in large bold navy type and 'Source and record: ursy.com/truth-spine/I-0141/' in bold blue; on the right a royal blue rounded badge 'URSY.com / TRUTH SPINE / FACT RECORD I-0141' in white; along the bottom 'Every fact on URSY.com is recorded with its source in the URSY.com Truth Spine. Explore them all at ursy.com/truth-spine'.

**The red outline:** address strip, round the source address: "https://developers.google.com/search/docs/appearance/google-images"; paragraph under 'Responsive images', end of second line and start of third line (two boxes): "We recommend that you always specify a fallback URL using the src attribute."

**Printed lines, in reading order:**
- URSY.com saved copy · read 2026-12-01
- https://developers.google.com/search/docs/appearance/google-images
- <div style="background-image:url(puppy.jpg)">A golden retriever puppy</div>
- 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 <image:loc> 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 <picture> 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:
- <img
- srcset="maine-coon-nap-320w.jpg 320w, maine-coon-nap-480w.jpg 480w, maine-coon-nap-800w.jpg 800w"
- sizes="(max-width: 320px) 280px, (max-width: 480px) 440px, 800px"
- src="maine-coon-nap-800w.jpg"
- alt="A watercolor illustration of a maine coon napping leisurely in front of a fireplace">
- The <picture> element is a container that is used to group different <source> 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
