One of the major features that makes the World Wide Web stand out from other elements of the Internet is that web pages can contain full-color images. Arguably, it was the existence of those images that helped the Web to catch on so quickly.
In this lesson you learned to place images on your Web pages. Those images are normally in GIF or JPEG format and should be small enough that they can be downloaded quickly over a slow link. You also learned that the HTML tag <img> enables you to put an image on a web page either inline with text or on a line by itself. The <img> tag has three primary attributes supported in standard HTML:
You can include images inside a link tag (<a>) and make them hot spots for the links.
In addition to the standard attributes, several other attributes to the <img> tag provide greater control over images and layout on web pages. You learned how to use these HTML 3.2 attributes in this lesson, but most of them have been deprecated in HTML 4.01 in favor of style sheets. They include the following:
In addition to images, you can add color to the background and the text of a page by using attributes to the <body> tag, or to individual characters by using the color attribute to <font>. You also learned that you can add patterned or tiled backgrounds to images by using the background attribute to <body> with an image for the tile. Finally, you learned the CSS properties color, background-color, and background, which enable you to specify colors for your page without using deprecated tags.