How can you implement responsive images in HTML?
Instruction: Describe techniques to make images responsive using HTML and CSS.
Context: This question assesses the candidate's ability to create web designs that adapt to different screen sizes, particularly through the use of responsive images.
Updated
Official answer available
Read the opening below, then unlock the full answer and practical guidance.
CSS controls the displayed size; srcset and sizes help the browser choose an appropriate resource. These are related but different jobs.
This example assumes three images with the stated intrinsic pixel widths and the same 3:2 composition:...