Assigning High-Resolution Src in Img Attribute

Aside from all of the CSS options available, this example simply assigns the hi-res variants of each image as an attribute directly in the img element. This is a quick and dirty method to specify an image's hi-res variant directly in the HTML structure.

Photo by Eric Pouhier


Photo by Benh LIEU SONG


Photo by Luc Viatour