During a recent interview, the interviewer posed an interesting question regarding 2 images:
- There is one large resolution image that needs to be displayed on laptops and desktops.
- There is also a small image that should only be shown on mobile devices.
The challenge is to fetch the correct image (either of the two) based solely on the "screen resolution" using HTML alone. The use of CSS/JS/jQuery is not allowed!
Despite having strong HTML skills, I was unable to provide an answer to this. Does anyone have any insight into what the interviewer may have meant by this question or what the correct solution could be?