2 of 3 images have no width and height

Short answer

Some <img> elements have neither both width and height attributes nor an aspect-ratio in their inline style; the finding counts them against all images on the page and lists up to 10. Add the image's real width and height as attributes; CSS can still make it responsive.

seo.img_dimensions · Priority: P3

What it means

Without width and height the browser does not know how much space an image takes, so the page jumps while it loads (layout shift, a Core Web Vitals metric). Set both attributes or a CSS aspect-ratio.

Why it matters for AI search

Until an image without a size has loaded, the browser does not know how tall it will be and reserves no space for it. When it arrives, the text below jumps down. This is layout shift, measured by CLS, one of Google's Core Web Vitals, and it makes people lose their place or tap the wrong thing.

With width and height set, browsers work out the aspect ratio before the image loads and reserve the right space, even when CSS scales the image to the screen. The check reads the HTML only: a size set by a CSS class or by JavaScript is not seen, so an image can be listed even if it does not cause a shift.

How to fix it

  1. Open the evidence to see which images have no size.
  2. Add width and height with the image's real size in pixels, or any two numbers with the same ratio. Keep max-width: 100%; height: auto; in your CSS so it still scales.
  3. For images whose box is set by CSS, such as object-fit: cover banners, an inline style="aspect-ratio: 16 / 9" also satisfies the check.
  4. Fix the template rather than each image. In WordPress, images inserted in the editor get sizes automatically, but theme code and some page builders output <img> without them; in Next.js, next/image sets them for you.
  5. Run "Check again" on the page report to confirm the result.

Example

<img src="/img/hero.jpg" width="1200" height="800" alt="Dashboard overview">

<style>
  img { max-width: 100%; height: auto; }
</style>

How to confirm the fix

After the change, press "Check again" on the report: it lists what was fixed and how the score changed.

Check my page →

All findings and how the score works