Image and Image Map Elements

Without images, the Web would just be another version of Gopher. Web graphics give pages po-werful visual appeal and often add significantly to the messages that authors are trying to convey.

Placing an image on a page is as simple as using the XHTML <img /> element. In its most basic form, the <img /> element needs only two attributes to do its job. However, <img /> supports as many as 10 attributes that you can use to modify how the image is presented.

▸ To learn more about placing graphics on Web pages, see Chapter 5, "Advanced Graphics"

<img />

Type:

Standalone

Function:

Places an inline image into a document (see Figure 3.14).

Figure 3.14. Photos, logos, and other graphics are placed into a document using the ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 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.