- What is the difference between SRC and Srcset?
- What element is used to display images?
- What is a responsive image?
What is the difference between SRC and Srcset?
The srcset attribute takes a comma-separated list of image URLs, each with an x descriptor stating the device-pixel-ratio that that file is intended for. The src is there for browsers that don't understand srcset . The alt , of course, is included for browsers that don't render images at all.
What element is used to display images?
The <IMG> tag is used to incorporate in-line graphics (typically icons or small graphics) into an HTML document.
What is a responsive image?
Responsive images are the set of techniques used to load the right image based on device resolution, orientation, screen size, network connection, and page layout. The browser should not stretch the image to fit the page layout, and loading it shouldn't result in time & bandwidth wastage.