HTML can detect if the user prefers a dark or light colorscheme and show a different image to them based on that. By default, it will show the light image, but it will shows the dark image if the person prefers the dark scheme.Feel free to have a play with this on Codepen.
Table of contents
HTML Structure1 Comment
Sort: