Cropping or modifying images for different media conditions (for example, loading a simpler version of an image which has too many details, on smaller displays). It provides a fallback in case none of the offered elements are able to provide a usable image.It describes the size and other attributes of the image and its presentation.To decide which URL to load, the user agent examines each 's srcset, media, and type attributes to select a compatible image that best matches the current layout and capabilities of the display device. The selected image is then presented in the space occupied by the element. If no matches are found-or the browser doesn't support the element-the URL of the element's src attribute is selected. The browser will consider each child element and choose the best match among them. The HTML element contains zero or more elements and one element to offer alternative versions of an image for different display/device scenarios.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |