EN, Change language
Englishالعربية
BH-104

Images declare their width and height.

The requirement

Images declare their width and height.

Why it matters to users

An image without declared dimensions pushes content down when it finishes loading, so the text the citizen is reading jumps. They may tap the wrong link because the page moved under their finger.

How to fix it

Add width and height attributes with the image's real dimensions to every img element, or an aspect-ratio in CSS, and have your CMS add them automatically. Then scan again.

How we measure it

img elements with width and height attributes (or CSS aspect-ratio).

Its official source

Related rules

Image width and height set · Bahrain BH-104 | xfix