205k views
3 votes
the purpose of the img element’s ______ attribute is to provide a method for a browser to display different images depending on specific criteria indicated by the web developer.

User Qwattash
by
8.2k points

1 Answer

3 votes

Answer:

srcset

Step-by-step explanation:

The srcset attribute in HTML5 is used to select and render different images depending different situations. While using the srcset, the designer will specify a list of images' URLs as well as the description of their sizes. It also allows the designer to identify the default image source. In this way web browsers will display any of the images listed depending on specific criteria that the developer has specified.

User Razenha
by
8.4k points