Sams Teach Yourself HTML 4 in 24 Hours

Sams Teach Yourself HTML 4 in 24 Hours

By Dick Oliver

Summary

This hour has shown you how to use the <img /> tag to place graphics images on your Web pages. You learned to include a short text message to appear in place of the image as it loads and to appear whenever someone moves the mouse pointer over the image. You also learned to control the horizontal and vertical alignment of each image and how to make text wrap around the left or right of an image.

Finally, you learned how to make images into "buttons" that link to other pages by using the same <a> tag introduced in Hour 3. You also got a sneak preview of the kind of custom page backgrounds you'll learn to use in Hour 11.

Table 10.1 summarizes the attributes of the <img /> tag covered in this hour.

Table 10.1. HTML Tag and Attributes Covered in Hour 10

Tag Attribute Function
<img />   Places an image file within the page.
  src="&hellip" The address or filename of the image.
  alt="&hellip" A text message that can be displayed in place of the image.
  align="&hellip" Determines the alignment of the given image. If left or right, the image is aligned to the left or right column, and all following text flows beside that image. All other values, such as top, middle, bottom, absmiddle, or absbottom, determine the vertical alignment of this image with other items in the same line.

Share ThisShare This

Informit Network