Images

The Img (image) element identifies an image file, the content of which is to appear at the current location. This is an empty element; there is no end-tag. A Src (source) attribute specifies the name and location of the image file:

...there is a GIF file <IMG SRC="myimage.gif"> here.

The image name alone, as shown above, is sufficient when the image resides in the same directory as the HTML document. The rules for specifying an image file stored in another location are the same as for hypertext links (described later), so need not be covered here. By default, the base of the image is likely to be aligned with the baseline of the text. Image alignment can be made specific using the Align attribute (now deprecated), which takes a value ...

Get XSL companion, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.