When to Use PNGs

PNG is capable of supporting both indexed and Truecolor image types, so there’s no bitmapped graphic it can’t handle. Virtually all browsers in use today support PNGs as inline images, although they may not support all the bells and whistles, as you’ll see in the "Platform/Browser Support" section later in this chapter.

For web design purposes, there are a few criteria to consider for choosing PNG over another format for an image.

Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.