About Images for the Web

Let’s look at the six factors you should keep in mind as you create Web images.

Format

People who print images on paper don’t have to worry about what their readers will use to look at the images. You do. The Web is accessed every day by millions of Macs, Windows-based PCs, phones, tablets, and other kinds of devices. The graphics you use in your Web page should be in a format that each of these operating systems can recognize. Presently, the three most widely used formats on the Web are GIF, PNG, and JPEG. Current browsers can view all three image formats.

You want to choose a format that gives you the best quality with the smallest file size.

The JPEG format is good for color photographs because it handles large amounts ...

Get HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.