Skip to main content

HTML Guide

Bad value for attribute “srcset” on element “source”: No width specified for image X. (When the “sizes” attribute is present, all image candidate strings must specify a width.)

The sizes attribute is used to complement the srcset attribute on an <img> tag for responsive images. When this attribute is present, all image candidates must specify its width.

Learn more:

Related W3C validator issues