Basic HTML version of Foils prepared 11 May 1997

Foil 16 Inlined Images

From Introduction to HTML--ECS400 fall 97 ECS400 Senior Undergraduate Course -- Spring Semester 97. by Nancy J. McCracken *

1 Browsers such as Mosaic and Netscape allow you to include images inbetween lines of text.
2 The image must be in GIF format. (Netscape now allows inlined JPEG images.)
3 Suppose that we make a banner for our company that includes the name in a GIF image. Then we can replace our original plain text header with the image:
4 <img src="rugbanner.gif", alt="Oriental Rug Company">
5 Only the SRC attribute of the image is required. ALT is optional and gives alternate text for text-based viewers such as Lynx which cannot show the image.
6 The attribute BORDER=value tells the width of the picture border in pixels (this is blue if the image is a link).
7 The VSPACE=value and HSPACE=value attributes specify the numbers of pixels of blank space to surround the image.
8 Another attribute is ALIGN=top|texttop|middle|absmiddle|baseline|bottom|absbottom. If there is any text after the picture which can fit on the formatted page besides the picture, this will say how to place it. The default is "bottom".

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Aug 26 1997