Skip to main content

HTML Guide

Bad value “” for attribute “(width|height)” on element “img”: The empty string is not a valid non-negative integer.

The attributes width and height of <img> elements expect a non-negative integer, so an empty string is not allowed. Either define the correct dimension, or remove this attribute.

Learn more:

Related W3C validator issues