# Provide textual context

- Check 16.12 · Images and multimodal search · Important
- Source: https://checklist-seo-geo.com/en/images-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.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/images-multimodal-search/provide-textual-context.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## 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](https://checklist-seo-geo.com/en/readability-direct-answers/avoid-information-available-only-images-videos).

## 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](https://search.google.com/search-console?action=inspect) 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.

```html
<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](https://checklist-seo-geo.com/en/images-multimodal-search/add-captions-if-relevant) to images that carry information.
- Check the [alt text](https://checklist-seo-geo.com/en/images-multimodal-search/write-relevant-alt-text-without-keyword-stuffing) and the [file name](https://checklist-seo-geo.com/en/images-multimodal-search/use-descriptive-file-names).

### 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):

```html
<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.

```tsx
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.

## Resources

- [Google Search Central: image SEO best practices](https://developers.google.com/search/docs/appearance/google-images?hl=en)
- [Google Search Central: AI features and your website](https://developers.google.com/search/docs/appearance/ai-features?hl=en)
- [Google Search Central: title links](https://developers.google.com/search/docs/appearance/title-link?hl=en) and [snippets](https://developers.google.com/search/docs/appearance/snippet?hl=en)
- [MDN: the figcaption element](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/figcaption)
- [WordPress Core: changes to attachment pages in WordPress 6.4](https://make.wordpress.org/core/2023/10/16/changes-to-attachment-pages/)

Next steps: [allow crawler access](https://checklist-seo-geo.com/en/images-multimodal-search/allow-crawler-access) and [test multimodal searches](https://checklist-seo-geo.com/en/images-multimodal-search/test-multimodal-searches).
