Skip to main content

2 docs tagged with "srcset"

View all tags

HTML srcset and sizes

Learn how srcset and sizes work in HTML. Understand width descriptors and pixel density descriptors, how to write the sizes attribute with media conditions and calc, how browsers choose a file, how to plan image widths, test results, and avoid common mistakes on CodeHarborHub.

Responsive Images and Performance

Learn how srcset, sizes and picture affect page speed: how the browser picks an image, why a wrong sizes value wastes data, which formats save bytes, and how to audit a page. Includes a selection lab and a live image checker.