srcset and sizes
Offer several image widths and let the browser pick.
Intermediate
<img src="pcb-800.jpg" srcset="pcb-400.jpg 400w, pcb-800.jpg 800w, pcb-1600.jpg 1600w"
sizes="(max-width: 600px) 100vw, 50vw" alt="Assembled PCB">
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.