Why Image Dimensions Matter
When images lack width and height attributes, browsers do not know how much space to reserve. This causes Cumulative Layout Shift (CLS) — a Core Web Vital that Google uses as a ranking factor.
How to Fix
- Add
widthandheightattributes to every<img>tag - Use the image's natural dimensions or aspect ratio values
- Combine with CSS
max-width: 100%; height: auto;for responsive images
How RankNibbler Checks This
RankNibbler scans every image and checks for width and height attributes. Missing dimensions are counted and flagged in the Accessibility tab.
Check this now. Go to the RankNibbler homepage and enter any URL for a free audit.