Why it matters
Images are often the heaviest part of a page. WebP and AVIF give similar quality at a smaller size, with a JPEG or PNG fallback where needed.
Example
<picture>
<source srcset="photo.avif" type="image/avif">
<img src="photo.jpg" alt="" width="800" height="450">
</picture>Where you will see it
The free Image alt text & size checker looks at this on a live page and explains what it finds in plain English: find images with missing alt text, heavy files, outdated formats or no width and height.
Related terms
- Responsive images: The srcset and sizes attributes list several sizes of an image so the browser downloads one that fits the screen.
- Page weight: The total size of all files a browser downloads to show a page: HTML, CSS, JavaScript, images, fonts and more.
- Lazy loading: Delaying the loading of images or frames until they are near the visible area, for example with loading="lazy".
Go deeper
- Page weight explained: What page weight means, which files make pages heavy, how to measure transferred size, and practical ways to shrink images, scripts, fonts and video.