Learning HTML
Chapter 5 - Using Graphics and Colors

5.6 Review

This section covered the <IMG> tag and <BODY> tag for using graphics and colors in HTML documents. The following are examples of the use of these tags:

<IMG SRC="up.gif">
Displays the image in the file up.gif, which is located in the same directory as the HTML document.

<IMG SRC="up.gif" ALIGN="MIDDLE"> Here is some text...
Displays the image and aligns the adjoining text in the middle of the image.

<IMG SRC="up.gif" ALIGN="RIGHT"> Here is some text...
Displays the image to the right of the current text area and wraps the adjoining text around the image.

<IMG SRC="www.dickinson.edu/sealsm.gif">
An absolute reference to an image file on the Dickinson web server.

<IMG SRC="blue.gif" WIDTH=450 HEIGHT=2>
Using the HEIGHT and WIDTH parameters to specify image size.

<A HREF="#Top"> <IMG BORDER=0 SRC="up.gif"> </A>
Using an image as a link (with no border).

<A HREF="#Top"> <IMG ALT="Go Up" SRC="handup.gif"> </A>
The ALT parameter, which displays text for non-graphical browsers.

<BODY BACKGROUND="sealbg.gif">
Using an image as background.

<BODY BGCOLOR="Aqua" TEXT="Blue">
Setting the background color and text color.

Had enough? Well, we're just about done. The final section will wrap up everything you've learned and explain how to move your documents to a Web server.


Learning HTML
www.dickinson.edu/~dempsey
Last updated 6/8/2001
Copyright © 2001 Paul Dempsey