HTML · Link and navigation attributes

imagesrcset

A responsive image candidate list for preloading, used with imagesizes.

Syntax
imagesrcset="/hero-480.jpg 480w"

Example

Try it

More in this group

as crossorigin download fetchpriority href hreflang imagesizes integrity

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course