Img src class background. Alt srcset. srcset sizes. css srcset 2x. when the srcset attribute has any image candidate string with a width descriptor, the sizes attribute must also be present..