Chapter 16. Images

by Chris Mills

In the beginning, there was only text, and lo, the Web was quite boring. But then images came along, and they said “This place is drab, fellas, let’s have a party—whoo hoo!”

To put it in other words, the Web began life as text and not much else. Its main purpose was to provide a method to share government and academic documents. Images were first seen on the Web in the early ’90s when the Mosaic browser introduced the <img> element. All of a sudden web pages incorporated pictures, artwork, decoration! The ability to add background images on elements using CSS followed around the turn of the century.

Nowadays images are used in abundance on the Web, for many purposes—icons as we saw in Chapter 15, “Links,” custom ...

Get InterACT with Web Standards: A holistic approach to web design now with O’Reilly online learning.

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