For developers who want to use responsive images today, what can they do? We'll cover the current state like picture, img src, srcset, etc and include suggestions around art direction.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-06 UTC."],[[["Developers can leverage modern techniques like the `\u003cpicture\u003e` element, `srcset`, and `sizes` attributes on `\u003cimg\u003e` tags to create truly responsive images that adapt to different screen sizes and resolutions."],["Art direction in responsive images involves serving different image crops or variations based on the user's viewport, ensuring optimal visual appeal and content clarity on any device."],["While the current state of responsive images offers many options, developers must thoughtfully consider the balance between performance and user experience to deliver the best possible results."]]],[]]