If we're using the srcset
and sizes
attributes, it is still useful to specify a src
attribute as a fallback. Similarly, I imagine that older browsers would also take advantage of width
and height
attributes if they were specified. But do modern browsers?
For example:
<img
src="foo100x100.jpg"
srcset="foo100x100.jpg 100w, foo500x500.jpg 500w, foo900x900 900w"
sizes="100vw"
width="100"
height="100"
alt="example"
>
Are the width
and height
attributes of any use to a modern browser in this example?