Generally when doing responsive / mobile first design we use media queries to send different CSS to different screen sizes.
A good design may include the default (small) resolution not having any images.
This is easy to achieve when using background-image
in CSS for your images but I can't imagine how you would achieve this using semantic <img>
tags.
- Can this be done with HTML?
- Is it acceptable to use CSS for all your images?
Personally I like having no images for my default small screen size, however I find it very ugly to not send any images to the HTML-only version for desktops.
Note: JavaScript solutions are not acceptable.