Images missing width and height attributes

Width and height attributes on image tags tell the browser how much space to reserve for each image before it has finished downloading. Without these attributes, the browser cannot reserve the correct space, so the page layout shifts as images load — causing text and buttons to jump around. This is measured as CLS (Cumulative Layout Shift), one of Google's Core Web Vitals ranking signals, and is the most common cause of poor CLS scores. Add explicit width and height attributes to every image tag on your site. These should match the image's natural dimensions; CSS can still be used to make it responsive.

Why this matters

Without these attributes, the browser cannot reserve the correct space, so the page layout shifts as images load — causing text and buttons to jump around. This is measured as CLS (Cumulative Layout Shift), one of Google's Core Web Vitals ranking signals, and is the most common cause of poor CLS scores.

How to fix it

Add explicit width and height attributes to every image tag on your site. These should match the image's natural dimensions; CSS can still be used to make it responsive.