Skip to main content

HTML Guide

Bad value X for attribute “(width | height)” on element “img”: Expected a digit but saw “.” instead.

The attributes width and height on <img> elements define the dimensions of the image in CSS pixels, and expect a non-negative integer.

Learn more:

Related W3C validator issues