Images missing width and height attributes: what it is, why it matters, and how to fix it
One or more images on this page do not specify width and height attributes. Without dimensions, the browser cannot reserve space for images before they load, causing layout shifts.
Where this fits: performance in SEO
Why images missing width and height attributes hurts your rankings
Missing image dimensions are the leading cause of Cumulative Layout Shift (CLS), a Core Web Vital and ranking factor. When an image loads without pre-defined dimensions, the page content jumps to accommodate it, creating a frustrating user experience. Poor CLS scores directly affect search rankings.
This is a medium-severity issue: individually modest, but it compounds — dozens of medium issues across hundreds of pages add up to a real quality deficit in how search engines assess the site.
How to fix it
Add width and height attributes to all <img> tags. The values should match the image's intrinsic aspect ratio. Use CSS to make images responsive while maintaining the aspect ratio.
<img src="photo.jpg" alt="Description" width="800" height="600" style="max-width: 100%; height: auto;" />Frequently asked questions
What does "Images missing width and height attributes" mean?
One or more images on this page do not specify width and height attributes. Without dimensions, the browser cannot reserve space for images before they load, causing layout shifts.
Why does images missing width and height attributes matter for SEO?
Missing image dimensions are the leading cause of Cumulative Layout Shift (CLS), a Core Web Vital and ranking factor. When an image loads without pre-defined dimensions, the page content jumps to accommodate it, creating a frustrating user experience. Poor CLS scores directly affect search rankings.
How do I fix images missing width and height attributes?
Add width and height attributes to all <img> tags. The values should match the image's intrinsic aspect ratio. Use CSS to make images responsive while maintaining the aspect ratio.
How serious is this issue?
This is a medium-severity issue: individually modest, but it compounds — dozens of medium issues across hundreds of pages add up to a real quality deficit in how search engines assess the site. It belongs to the performance family of checks.
How do I find every page affected by this on my site?
Run a free Dr Urls audit: it crawls your site, detects images missing width and height attributes on every affected page, shows example URLs, and generates a ready-to-use fix task. Re-scan after fixing to verify the issue is gone.
Does your site have this issue?
A free Dr Urls audit crawls your site, finds every page affected by images missing width and height attributes, and hands you a ready-made fix task.
Check my site free