HTML and CSS Reference
In-Depth Information
The following XHTML code fragment illustrates how to use the <br> tag
and its clear attribute as well as the <img> tag's alignment attributes to
place captions directly above, centered on the right, and below an im-
age that is aligned against the left margin of the browser window:
Paragraph tags separate leading and following
text flow from the captions.
<p>
I'm the caption on top of the image.
<br />
<img src="kumquat.gif" align="absmiddle">
This one's centered on the right.
<br clear="left" />
This caption should be directly below the image.
</p>
<p />
Figure 4-15 illustrates the results of this example code.
 
Search WWH ::




Custom Search