Image formats
Use SVG for icons and diagrams that should remain sharp at any size. WebP suits photographs and illustrations. PNG is useful when you need lossless raster output.
Reference notes for preparing and publishing web assets.
Use SVG for icons and diagrams that should remain sharp at any size. WebP suits photographs and illustrations. PNG is useful when you need lossless raster output.
List available image widths in srcset and describe the layout in sizes. Set the intrinsic width and height so the page can reserve space before the file loads.
Include a content hash in a published filename. When the content changes, publish a new filename and update the page reference.