O'Reilly logo

Platinum Edition Using XHTML™, XML, and Java™ 2 by Andrew H. Watt, Mike Morgan, Jim O'Donnell, Eric Ladd

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required