<IMG SRC="[Document]" ALT="Your Alternative text"> eg. <IMG SRC="Logo.GIF" ALT="Educational Technology Center">
This will simply place the image on your page. The ALT tag is Alternative Text which a browser application can use in a variety of ways. A text only browser will display this text for your image, if no ALT text is included in the tag a text only browser will simply state [IMAGE]. Including this Alternative Text is important to allow visually impaired people full use of your pages when they access them over the Web. Some graphical browsers will display this text when images are not loaded. Some people, especially those using slower connections from home, do not load all the images and this text will give them some idea of what the image is and help them decided whether or not to load it.
Text following your image on the page will begin right next to the bottom of the image.
<IMG SRC="Logo.GIF" ALT="Educational Technology Center"> RIT
You can add the align specification to your image tag to position the text differently.
<IMG SRC="Logo.GIF" ALT="Educational Technology Center" Align=top> RIT
<IMG SRC="Logo.GIF" ALT="Educational Technology Center" Align=center> RIT
If you want your text to begin on a new line after the image use the <BR> tag to indicate a paragraph break.
<IMG SRC="Logo.GIF" ALT="Educational Technology Center"> <BR> Welcome to the Educational Technology Center.
If you don't have any images of your own to work with you can browse the sites on the RIT Library -- Images for Web page. If you need a reminder on how to acquire images from these sites you may want to review the section on getting an image in the HTML tutorial.
<A HREF="About.HTML"><IMG SRC="Button.GIF"></A>
Above is a simple link attached to an image alone. Clicking on the link will take you to the HTML document "About.HTML".
<A HREF="About.HTML"><IMG SRC="Button.GIF"> Squash out Bugs</A>
This shows the image and the text "Squash out Bugs" used together as a link. Clicking on either will follow the link.
To make your pages load as quickly as possible you may want to use a smaller thumbnail of your image as a link to your full image. This allows the viewer to get some idea of whether or not they would like to take the time to load the larger image.
<A HREF="Beakman.GIF"><IMG SRC="BeakmanThumb.GIF"></A>
This shows a small thumbnail image of Professor Beakman, BeakmanThumb.GIF, as a link that when clicked on will take you to the larger image, Beakman.GIF.
<BODY Background="Stellar.JPG">All pages have a <BODY> tag near the beginning of the document. By adding the Background specification we have told the browser to use the image Stellar.JPG as the background for this page.
<BODY Background="Stellar.JPG" Text=#EFEFEF>Since colors are made up of a hexadecimal number of its' Red, Green, and Blue values the easiest way to figure out the values is to use a utility such as HexColor for the Macintosh. This utility allows you to select the color from a color wheel you can adjust and gives you the hexadecimal number for that color ready to be copied and pasted into your HTML document.
Just to give you some idea of what not to do, we have an example of bad choices when using backgrounds. Since you won't be able to read much remember to use the Back Arrow button in your browser to return to the tutorial.
The image doesn't tile well as a background, some of it is cut off on one side giving it a lopsided look. Everything is too dark and the normal black text is nearly impossible to read over the image.
Make wise choices when choosing backgrounds and text colors and try them out before you use them. You may even want to ask some other people to look things over because a combination that looks great to you may be impossible for others to read.
If you don't have any images of your own to work with you can browse the sites on the RIT Library -- Images for Web page. If you need a reminder on how to acquire images from these sites you may want to review the section on getting an image in the HTML tutorial.
In this example yellow has been made transparent in the image.
Transparent images are more desirable then trying to match the grey background color in your image. The background color can be defined by the user of the browser so the background might not necessarily be grey for everyone. Transparency gives your images a clean and consistent look.
You can save a GIF in this format using a program such as GraphicConverter on the Macintosh. In this program click the Option button in the Save dialog box when you are saving the image as a GIF file to get the Interlace option.
<P Align=Center> <IMG SRC="Logo.GIF" ALT="Logo"> </P>
This concludes our tutorial on using images in your HTML documents. If you have any questions or comments please feel free to let us know!