Chapter 6. Using Images

Once you’ve created the fastest-loading, hottest-looking images you can—perhaps with the techniques in the previous chapter—you’re ready to get back to (X)HTML and get those images on your page.

Inserting Images on a Page

You can place all kinds of images on your Web page, from logos to photographs. Images placed as described here appear automatically when the visitor jumps to your page, as long as the browser is set up to view them.

To insert an image on a page

  1. Place the cursor where you want the image to appear.

  2. Type <img src=“image.url” where image.url indicates the location of the image file on the server (see page 33).

  3. Type a space and then the final />.

Example 6.1. The URL for this image, since it contains only the file ...

Get HTML for the World Wide Web, Fifth Edition, with XHTML and CSS now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.