|
|||||||||
![]() |
|
Simple imagesThe ALT attribute gives an alternative textual description to be displayed instead of the image by text-mode browsers. This is often just a parenthetical note to indicate that an illustration has been specified, for example:
<IMG SRC="trees.gif" ALT="[a picture of some trees]"> By default, where images are included on a line with text, the bottom edge of the image is aligned with the baseline of the text. This can be overridden using the ALIGN attribute, which can take the values TOP, MIDDLE or BOTTOM; for example:
<IMG SRC="trees.gif" ALIGN="TOP"> Hypertext saves trees! would be displayed as follows:
Note that the image element is empty - it does not require an end tag. The end tag </IMG> is illegal and can cause undesirable effects with some browsers.
Future versions of HTML will allow you to specify that text should
flow around the image. The Netscape browser from Netscape
Communications Corporation already accepts HTML extensions that
provide just that. Appendix
|
||||||
Copyright © 1996-2002 Ford & Mason Ltd |
![]() |