How do I make a responsive image with srcset?
List one variant address per width step with its w descriptor, and add
sizes:
<img
src="https://files.talewrightusercontent.com/_img/v=3,w=1280,h=0,q=80,fit=inside,f=webp/p/3f9c2a71b84e4d0f9a6c5e1d7b2048ac/hero.jpg"
srcset="
https://files.talewrightusercontent.com/_img/v=3,w=640,h=0,q=80,fit=inside,f=webp/p/3f9c2a71b84e4d0f9a6c5e1d7b2048ac/hero.jpg 640w,
https://files.talewrightusercontent.com/_img/v=3,w=1280,h=0,q=80,fit=inside,f=webp/p/3f9c2a71b84e4d0f9a6c5e1d7b2048ac/hero.jpg 1280w"
sizes="(min-width: 1024px) 50vw, 100vw"
width="2400" height="1600" alt="The harbour at dawn">