Check 16.12 · Images and multimodal search

Provide textual context

Place every important image on a page that talks about it: consistent title, nearby text, caption, alt text and structured data, template by template.

Priority
Important
Difficulty
Intermediate
Estimated time
2 to 4 h per template
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

A search engine does not understand an image on its own: it understands it through the page around it. Textual context is all the text that says what the image shows and why it is there: the page's title and H1, the nearby paragraph, the caption, the alt text, the file name, structured data. The task is to check that these elements all talk about the same subject as the image, first on templates (product page, article, gallery, service page), then on key pages.

Why it matters

Google writes that it derives the subject of an image from the content of the page, including captions and image titles, and recommends placing images near the text they relate to, on pages whose subject matches. It also states that the result shown in Google Images (title and snippet) is generated from the page, in particular from its title and meta description.

In practice, a photo of a boiler placed on an “Our values” page or in a carousel with no text tells Google almost nothing, even with good alt text. The same photo, on the “Boiler servicing in Nantes” page, under a paragraph describing the job and with a dated caption, becomes understandable and relevant for specific searches.

Generative engines work the same way. When someone photographs an object and asks an assistant a question, the assistant matches the image to web pages; what it can reuse in its answer is the text of those pages. Information that exists only in the image (a price, a dimension, opening hours embedded in it) is unlikely to be picked up: see avoid information available only in images or videos (opens in a new tab).

What it improves

  • Relevance in Google Images The image can appear for queries that match what it shows and what the page says.
  • Displayed result The page's title and snippet, reused in Google Images, describe the image better.
  • Multimodal searches (Lens, searching with a photo): the page accompanying the image gives the answer the user is looking for. Effect not quantified.
  • AI answers Facts written next to the image can be reused. No guarantee of citation.
  • Accessibility and reading Readers understand why the image is there.
  • Web page rankings Indirect effect, through topical consistency.

How to check

For a given page, check each informative image against this grid:

Element Question Compliant if
Title and H1 Do they announce the subject the image shows? Same subject
Nearby text Does the paragraph before or after talk about what the image shows? Yes, within a few lines
Caption Is there one when the image carries information? Yes, precise
Alt text Does it describe the image itself? Yes, without stuffing
File name Is it descriptive? chaudiere-entretien-nantes.jpg, not IMG_4521.jpg
Initial HTML Are the image and its text in the served HTML, not only after a click? Yes
Embedded information Does a figure or a name exist only in the image? No

For the last check in the grid, disable JavaScript or view the source code (Ctrl+U or Cmd+Option+U) and search for the image's file name and its caption. Search Console's URL Inspection tool, “Test live URL” then “View tested page”, shows the rendered HTML as Google sees it.

How to implement

Step 1 — List the templates that carry images

Group pages by template and note where the images are and where the text is:

Template Images Text available near the images Risk
Product page Gallery of 4 to 8 photos Name, description, specifications Gallery isolated at the top, description far down
Article or guide Images in the body Paragraphs Mood images unrelated to the section
Portfolio page Grid of photos Often nothing Photos with no text at all
Local service page Main photo Paragraphs Generic photo
Attachment page (CMS) One image None Empty indexable page

Step 2 — Align the page with the main image

The main image should illustrate the subject of the page, and the page should say so in text:

  • Title and H1 name what the image shows (“Gas boiler servicing in Nantes”, not “Welcome”).
  • First paragraph describes the subject using the words the image illustrates.
  • Declared preferred image: Google recommends specifying the page's representative image with og:image or with structured data (primaryImageOfPage, or the image of the main entity). Avoid the logo and very elongated images.
<meta property="og:image" content="https://example.com/images/entretien-chaudiere-gaz-nantes.jpg">

Step 3 — Bring each image close to its text

  • Place the image in the section that talks about it, just before or after the relevant paragraph, not grouped at the end of the article.
  • Write in the text what the image shows and why it is useful: “In the photo below, the heat exchanger is scaled up: this deposit is what lowers efficiency.”
  • Add a caption (opens in a new tab) to images that carry information.
  • Check the alt text (opens in a new tab) and the file name (opens in a new tab).

Step 4 — Get information out of images

Anything written in an image must also exist as text on the page: prices, dimensions, opening hours, steps of a diagram, figures from a chart. For a chart, sum up the conclusion in the caption and give the values in an HTML table under the image.

Example for Thé des Lisières (a fictitious shop):

<figure>
  <img src="/images/temperature-infusion-thes.png"
       alt="Chart of recommended brewing temperatures by type of tea"
       width="1200" height="700" loading="lazy">
  <figcaption>Japanese green teas are brewed cooler than black teas.</figcaption>
</figure>

<table>
  <caption>Recommended brewing temperatures</caption>
  <thead><tr><th scope="col">Tea</th><th scope="col">Temperature</th><th scope="col">Time</th></tr></thead>
  <tbody>
    <tr><td>Sencha</td><td>70 to 80 °C</td><td>1 to 2 min</td></tr>
    <tr><td>Darjeeling</td><td>85 to 90 °C</td><td>3 min</td></tr>
  </tbody>
</table>

Step 5 — Give text to pages that have none

  • Portfolio galleries: a short note for each photo or project (location, date, work carried out, equipment), visible under the thumbnail, not only in the lightbox.
  • Product pages: place the name and a short description next to the gallery, and describe in the text what the important views show (“view of the sole”, “contents of the gift box”).
  • Image-only pages (attachments, “gallery” pages): redirect them to the page that uses the image or set them to noindex.

WordPress

Versions WordPress 6.4 and later, Yoast SEO and Rank Math in their November 2026 versions, WooCommerce 9 and 10.

  • Attachment pages: every uploaded image can have its own, almost empty, page. Since WordPress 6.4, they are disabled by default on new installs; on an older site, the wp_attachment_pages_enabled option stays at 1: Yoast SEO (advanced settings, Media pages section) and Rank Math (General Settings, attachment redirect option) redirect these pages to the file or to the parent post. Without a plugin, wp option update wp_attachment_pages_enabled 0 (WP-CLI) disables them: WordPress then redirects to the file.
  • Gallery block: enable the caption of each image and place the gallery under a paragraph that introduces it.
  • WooCommerce: the short description is displayed next to the gallery in most themes; use it to describe the product in one to three factual sentences.

Shopify

Versions Online Store 2.0 themes (Horizon, Dawn), all Shopify plans, November 2026.

In the theme, check in the editor (Online Store > Themes > Customize, Product template) that the title, the price and a description or text block appear next to the media. For collection pages built mostly with images, add the collection description, shown at the top or bottom depending on the theme.

Next.js

Versions Next.js 15 and 16 (App Router).

Images and their text must be in the server-rendered HTML. A gallery whose captions only load when a lightbox opens, or a carousel where only the first slides exist in the HTML, deprives the other images of context. Render captions and descriptions in the server component, and keep the lightbox as a mere enhancement.

import Image from 'next/image';

type Realisation = { src: string; alt: string; titre: string; description: string };

export function GrilleRealisations({ items }: { items: Realisation[] }) {
  return (
    <ul className="grille">
      {items.map((item) => (
        <li key={item.src}>
          <figure>
            <Image src={item.src} alt={item.alt} width={800} height={600} />
            <figcaption>
              <strong>{item.titre}</strong> {item.description}
            </figcaption>
          </figure>
        </li>
      ))}
    </ul>
  );
}

The same principle applies to Laravel, Nuxt or Astro: the text associated with the image is rendered in the template on the server, not injected later by JavaScript.

Common mistakes

  • Images grouped at the bottom of the page or in a carousel, far from the text they illustrate.
  • Portfolio pages with no text at all: dozens of photos that nothing describes.
  • Information embedded in the image (prices, opening hours, steps) and missing from the text.
  • Captions loaded only in the full-screen lightbox, missing from the initial HTML.
  • Indexable attachment pages: one image, no text, hundreds of weak URLs.
  • CSS background images for informative photos: Google does not index CSS images. Use an img element.
  • Making up for the lack of text with a very long alt or one stuffed with keywords: alt text describes the image, it does not replace the page.

Frequently asked questions

How does Google understand the content of an image?

Google relies heavily on the page that hosts the image. It says it derives the subject of an image from the content of the page, including captions and image titles, and also uses the alt text and the file name. Placing the image near text that talks about it, on a page whose subject matches, is therefore the most reliable way to make it understandable and relevant.

Is alt text enough to give an image context?

No. Alt text describes the image for people who cannot see it, but it does not replace the page title, the nearby paragraph or the caption. An image with good alt text placed on an unrelated page is still poorly understood. Write accurate alt text, then check that the page and the surrounding text talk about the same subject as the image.

Do AI assistants read the text written in images?

Some models can read text in an image, but do not count on it to get cited. When an assistant relies on a web page to answer, it mainly reuses its text. A price, opening hours or a figure that exists only in an image is unlikely to be picked up correctly. Always write this information in the page's text, in addition to the image.

Should attachment pages be disabled in WordPress?

Yes, in most cases. An attachment page contains only an image and almost no text: it has no value for search engines or for visitors. Since WordPress 6.4, they are disabled by default on new installs. On an older site, use the media page redirect option in Yoast SEO or Rank Math.

Updated on

Topic checklist (PDF)

And now?

In the “Images and multimodal search” topic

  1. Use descriptive file names
  2. Write relevant ALT text without keyword stuffing
  3. Use WebP/AVIF if appropriate
  4. Compress images
  5. Size images appropriately
  6. Use srcset and sizes
  7. Set width/height
  8. Lazy-load offscreen images
  9. Optimize key images
  10. Add captions if relevant
  11. Use original images
  12. Provide textual context
  13. Allow crawler access
  14. Create an image sitemap if needed
  15. Fix broken images
  16. Check rights and credits
  17. Measure Google Images visibility
  18. Test multimodal searches