Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The icon component implemented in Listing 9–1 is pretty handy. You can make icons look and behave exactly as you wish. But, we can make icons more useful by:
Requiring an image attribute
Letting the page author specify a CSS class for the image
Letting the page author trigger validation when an icon’s action is invoked