ptg16476052Images and Text 2059
Output ▼
Figure 9.3 shows how the page looks in a browser. The two images are adjacent to each
other, as you would expect.
And that’s all there is to adding images!
Images and Text
In the preceding exercise, you put an inline image on a page with text below it. You also
can include an image inside a line of text. In fact, this is what the phrase “inline image”
actually means—it’s in a line of text.
To include images inside a line of text, just add the tag inside an element tag
(
,
,
, and so on), as in the following line:
The Halloween House of Terror!!
Figure 9.4 shows the difference you can make by putting the image inline with the head-
ing. (I’ve also shortened the heading itself and changed it to
so that it all fits on one
line.)
FIGURE 9.3
Multiple images.
▼▲