EN, Change language
English
UK-134

Images declare their width and height, to avoid layout shift.

The GDS Way · Every UK public sector website

Why it matters to users

When images have no size, the page jumps as they load, so people lose their place or tap the wrong thing.

How to fix it

Add width and height attributes to each content image, or set an aspect-ratio in CSS. Then scan again.

How we measure it

Content images with width and height attributes (or an aspect ratio).

Its official source

Related rules

Image dimensions declared · UK-134 | xfix