Graphic Images

or scroll down the page.

Return to Main Page of Ted’s HTML Tutorial

A graphic picture can be worth a thousand words—and even more than that if it is animated.  Graphics and icons can turn a dull, drab web page into a vibrant, exciting one.  An image which is displayed on a web browser is referred to as an “inline image.”

To place a graphic image somewhere on a page, an emptyimage” tag is used:

The <IMG> tag should contain within it further parameters as part of the command:

Following are six examples of graphic image alignment (and other) parameters in the HTML source code and how the image in each case would appear on a browser (some may look very similar to others).  In each case, the browser is told to retrieve a file “chilippr.gif” from within a subdirectory called “graphics”:

This graphic alignment ("LEFT"):

<IMG SRC="graphics/chilippr.gif" ALIGN="LEFT" WIDTH="22" HEIGHT="16" VSPACE="5" HSPACE="5" ALT="chilipepper"><FONT SIZE="4">The red chilipepper is a popular food product in New Mexico.&nbsp; What creates the heat in this pepper is the chemical <I>capsaicin</I> (C<SUB>18</SUB>H<SUB>27</SUB>NO<SUB>3</SUB>).&nbsp; When eaten, natural endorphins in the body are released which not only reduce the pain from the heat but create a feeling of general well-being.</FONT> would appear this way: chilipepperThe red chilipepper is a popular food product in New Mexico.  What creates the heat in this pepper is the chemical capsaicin (C18H27NO3).  When eaten, natural endorphins in the body are released which not only reduce the pain from the heat but create a feeling of general well-being.
This graphic alignment ("RIGHT"):
<IMG SRC="graphics/chilippr.gif" ALIGN="RIGHT" WIDTH="22" HEIGHT="16" VSPACE="5" HSPACE="5" ALT="chilipepper"><FONT SIZE="4">The red chilipepper is a popular food product in New Mexico.&nbsp; What creates the heat in this pepper is the chemical <I>capsaicin</I> (C<SUB>18</SUB>H<SUB>27</SUB>NO<SUB>3</SUB>).&nbsp; When eaten, natural endorphins in the body are released which not only reduce the pain from the heat but create a feeling of general well-being.</FONT> would appear this way: chilipepperThe red chilipepper is a popular food product in New Mexico.  What creates the heat in this pepper is the chemical capsaicin (C18H27NO3).  When eaten, natural endorphins in the body are released which not only reduce the pain from the heat but create a feeling of general well-being.

This graphic alignment ("TEXTTOP"):

<FONT SIZE="4">The red chilipepper<IMG SRC="graphics/chilippr.gif" ALIGN="TEXTTOP" WIDTH="22" HEIGHT="16" HSPACE="5" ALT="chilipepper">is a popular food product in New Mexico.&nbsp; What creates the heat in this pepper is the chemical <I>capsaicin</I> (C<SUB>18</SUB>H<SUB>27</SUB>NO<SUB>3</SUB>).&nbsp; When eaten, natural endorphins in the body are released which not only reduce the pain from the heat but create a feeling of general well-being.</FONT> would appear this way: The red chilipepperchilipepperis a popular food product in New Mexico.  What creates the heat in this pepper is the chemical capsaicin (C18H27NO3).  When eaten, natural endorphins in the body are released which not only reduce the pain from the heat but create a feeling of general well-being.

This graphic alignment ("ABSMIDDLE"):

<FONT SIZE="4">The red chilipepper<IMG SRC="graphics/chilippr.gif" ALIGN="ABSMIDDLE" WIDTH="22" HEIGHT="16" HSPACE="5" ALT="chilipepper">is a popular food product in New Mexico.&nbsp; What creates the heat in this pepper is the chemical <I>capsaicin</I> (C<SUB>18</SUB>H<SUB>27</SUB>NO<SUB>3</SUB>).&nbsp; When eaten, natural endorphins in the body are released which not only reduce the pain from the heat but create a feeling of general well-being.</FONT> would appear this way: The red chilipepperchilipepperis a popular food product in New Mexico.  What creates the heat in this pepper is the chemical capsaicin (C18H27NO3).  When eaten, natural endorphins in the body are released which not only reduce the pain from the heat but create a feeling of general well-being.

This graphic alignment ("BASELINE"):

<FONT SIZE="4">The red chilipepper<IMG SRC="graphics/chilippr.gif" ALIGN="BASELINE" WIDTH="22" HEIGHT="16" HSPACE="5" ALT="chilipepper">is a popular food product in New Mexico.&nbsp; What creates the heat in this pepper is the chemical <I>capsaicin</I> (C<SUB>18</SUB>H<SUB>27</SUB>NO<SUB>3</SUB>).&nbsp; When eaten, natural endorphins in the body are released which not only reduce the pain from the heat but create a feeling of general well-being.</FONT> would appear this way: The red chilipepperchilipepperis a popular food product in New Mexico.  What creates the heat in this pepper is the chemical capsaicin (C18H27NO3).  When eaten, natural endorphins in the body are released which not only reduce the pain from the heat but create a feeling of general well-being.

This graphic alignment ("ABSBOTTOM"):

<FONT SIZE="4">The red chilipepper<IMG SRC="graphics/chilippr.gif" ALIGN="ABSBOTTOM" WIDTH="22" HEIGHT="16" HSPACE="5" ALT="chilipepper">is a popular food product in New Mexico.&nbsp; What creates the heat in this pepper is the chemical <I>capsaicin</I> (C<SUB>18</SUB>H<SUB>27</SUB>NO<SUB>3</SUB>).&nbsp; When eaten, natural endorphins in the body are released which not only reduce the pain from the heat but create a feeling of general well-being.</FONT> would appear this way: The red chilipepperchilipepperis a popular food product in New Mexico.  What creates the heat in this pepper is the chemical capsaicin (C18H27NO3).  When eaten, natural endorphins in the body are released which not only reduce the pain from the heat but create a feeling of general well-being.

To view and to obtain a variety of stationary and animated graphic images, go to Ted’s Collection of Graphic Images.

Proceed to Hyperlinks

Return to Main Page of Ted’s HTML Tutorial

Copyright © 1998– by Ted M. Montgomery.  All rights reserved.