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 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.