The picture element is an HTML element for declaring images based on different screen sizes or viewport. It takes in two properties, the — <source> tag which makes use of the srcset property to specify different images. There are a few use-case scenarios in which the picture tag can be very useful, below are three examples.
2 Comments
Sort: