HOME > Images

WEB DESIGN: BASICS


IMAGES

A picture is worth a thousand words. Enhancing your site with images is an easy task but requires some thought and planning. It's not enough to put a picture on the page. You need to take the following into consideration:

To add an image to a page you use the <IMG> tag (no close tag). It's more commonly used attributes are:

EXAMPLE 1

<HTML>

<HEAD>

<TITLE>The Eiffel Tower</TITLE>

</HEAD>

<BODY BGCOLOR="#FFFFCC" TEXT="#000066" LINK="#FF0000" VLINK="#0000FF" ACTIVE="#00FF00">

<P ALIGN=CENTER>[ <A HREF="index.html">HOME</A> ] [ <A HREF="http://www.paris.com">PARIS</A> ] [ NOTRE DAME ] [ THE EIFFEL TOWER ]</P>

<H1 ALIGN=CENTER>The Eiffel Tower</H1>

<IMG SRC="images/eiffeltower.jpg" HEIGHT="330" WIDTH="150" BORDER="1" ALT="PHOTO: The Eiffel Tower">

<P ALIGN=JUSTIFY><FONT COLOR="#0000CC" SIZE="4">The Eiffel Tower</FONT> is located on the <B>Left Bank</B> (<I>that is, the southern bank</I>) of the Seine river, at the northwestern extreme of the <EM>Parc du Champ de Mars</EM>, a park in front of the École Militaire that used to be a military parade ground (<SMALL><I>whence the name</I></SMALL>), in the southwestern portion of the city. The four pillars supporting the tower are aligned to the points of the compass, and the base covers almost exactly the area of two (<SUB>American</SUB>) football fields placed side by side lengthwise.</P>

<P ALIGN=JUSTIFY>The nearest Métro stations are <FONT SIZE="4">Bir-Hakeim</FONT> to the southwest, and <FONT SIZE="4">Trocadéro</FONT> to the northwest. The former is at the same level as the tower and somewhat closer, but less scenic; the latter is on the side of the <BIG>Parvis (<U>Plaza</U>) du Trocadéro <STRIKE>opposite the tower</STRIKE></BIG>, so if you get off at that station, you can take a very scenic walk through the Trocadéro and down across the Seine to the tower, with many good photograph opportunities. One of my pictures of the tower was taken from this location.</P>

<BLOCKQUOTE><P ALIGN=JUSTIFY>The area of the tower is in the <FONT FACE="courier" COLOR="#660066">chic</FONT> seventh <FONT FACE="courier" COLOR="#00AA00">arrondissement</FONT> of Paris, also the home of the National Assembly, the Prime Minister’s palace, and the Hôtel des Invalides. This district is roughly at the eight-<SUP>o’clock</SUP> position on a map of Paris, and somewhat more centered than the adjacent Fifteenth.</P> </BLOCKQUOTE>

<BR>

<CENTER>

<P><SMALL>About Us | <A HREF="mailto:info@frenchboard.com">Contact Us</A> | Help | Site Map<BR>

<HR>

French Tourist Board &#149; 1234 Champs Elysee, Paris, France &#149; 01-456-123-1234

<BR>Last Updated: 05/01/02</SMALL></P>

</CENTER>

</BODY>

</HTML>


Aligning an image left or right will wrap the text around the image. Here is an example of left align.

EXAMPLE 2

<HTML>

<HEAD>

<TITLE>The Eiffel Tower</TITLE>

</HEAD>

<BODY BGCOLOR="#FFFFCC" TEXT="#000066" LINK="#FF0000" VLINK="#0000FF" ACTIVE="#00FF00">

<P ALIGN=CENTER>[ <A HREF="index.html">HOME</A> ] [ <A HREF="http://www.paris.com">PARIS</A> ] [ NOTRE DAME ] [ THE EIFFEL TOWER ]</P>

<H1 ALIGN=CENTER>The Eiffel Tower</H1>

<IMG SRC="images/eiffeltower.jpg" HEIGHT="330" WIDTH="150" BORDER="1" ALT="PHOTO: The Eiffel Tower" ALIGN="left">

<P ALIGN=JUSTIFY><FONT COLOR="#0000CC" SIZE="4">The Eiffel Tower</FONT> is located on the <B>Left Bank</B> (<I>that is, the southern bank</I>) of the Seine river, at the northwestern extreme of the <EM>Parc du Champ de Mars</EM>, a park in front of the École Militaire that used to be a military parade ground (<SMALL><I>whence the name</I></SMALL>), in the southwestern portion of the city. The four pillars supporting the tower are aligned to the points of the compass, and the base covers almost exactly the area of two (<SUB>American</SUB>) football fields placed side by side lengthwise.</P>

<P ALIGN=JUSTIFY>The nearest Métro stations are <FONT SIZE="4">Bir-Hakeim</FONT> to the southwest, and <FONT SIZE="4">Trocadéro</FONT> to the northwest. The former is at the same level as the tower and somewhat closer, but less scenic; the latter is on the side of the <BIG>Parvis (<U>Plaza</U>) du Trocadéro <STRIKE>opposite the tower</STRIKE></BIG>, so if you get off at that station, you can take a very scenic walk through the Trocadéro and down across the Seine to the tower, with many good photograph opportunities. One of my pictures of the tower was taken from this location.</P>

<BLOCKQUOTE><P ALIGN=JUSTIFY>The area of the tower is in the <FONT FACE="courier" COLOR="#660066">chic</FONT> seventh <FONT FACE="courier" COLOR="#00AA00">arrondissement</FONT> of Paris, also the home of the National Assembly, the Prime Minister’s palace, and the Hôtel des Invalides. This district is roughly at the eight-<SUP>o’clock</SUP> position on a map of Paris, and somewhat more centered than the adjacent Fifteenth.</P> </BLOCKQUOTE>

<BR>

<CENTER>

<P><SMALL>About Us | <A HREF="mailto:info@frenchboard.com">Contact Us</A> | Help | Site Map<BR>

<HR>

French Tourist Board &#149; 1234 Champs Elysee, Paris, France &#149; 01-456-123-1234

<BR>Last Updated: 05/01/02</SMALL></P>

</CENTER>

</BODY>

</HTML>


When you left/right align the text will abut the image. Use the HSPACE attribute to put some space between the text and image.

EXAMPLE 3

<HTML>

<HEAD>

<TITLE>The Eiffel Tower</TITLE>

</HEAD>

<BODY BGCOLOR="#FFFFCC" TEXT="#000066" LINK="#FF0000" VLINK="#0000FF" ACTIVE="#00FF00">

<P ALIGN=CENTER>[ <A HREF="index.html">HOME</A> ] [ <A HREF="http://www.paris.com">PARIS</A> ] [ NOTRE DAME ] [ THE EIFFEL TOWER ]</P>

<H1 ALIGN=CENTER>The Eiffel Tower</H1>

<IMG SRC="images/eiffeltower.jpg" HEIGHT="330" WIDTH="150" BORDER="1" ALT="PHOTO: The Eiffel Tower" ALIGN="left" HSPACE="10">

<P ALIGN=JUSTIFY><FONT COLOR="#0000CC" SIZE="4">The Eiffel Tower</FONT> is located on the <B>Left Bank</B> (<I>that is, the southern bank</I>) of the Seine river, at the northwestern extreme of the <EM>Parc du Champ de Mars</EM>, a park in front of the École Militaire that used to be a military parade ground (<SMALL><I>whence the name</I></SMALL>), in the southwestern portion of the city. The four pillars supporting the tower are aligned to the points of the compass, and the base covers almost exactly the area of two (<SUB>American</SUB>) football fields placed side by side lengthwise.</P>

<P ALIGN=JUSTIFY>The nearest Métro stations are <FONT SIZE="4">Bir-Hakeim</FONT> to the southwest, and <FONT SIZE="4">Trocadéro</FONT> to the northwest. The former is at the same level as the tower and somewhat closer, but less scenic; the latter is on the side of the <BIG>Parvis (<U>Plaza</U>) du Trocadéro <STRIKE>opposite the tower</STRIKE></BIG>, so if you get off at that station, you can take a very scenic walk through the Trocadéro and down across the Seine to the tower, with many good photograph opportunities. One of my pictures of the tower was taken from this location.</P>

<BLOCKQUOTE><P ALIGN=JUSTIFY>The area of the tower is in the <FONT FACE="courier" COLOR="#660066">chic</FONT> seventh <FONT FACE="courier" COLOR="#00AA00">arrondissement</FONT> of Paris, also the home of the National Assembly, the Prime Minister’s palace, and the Hôtel des Invalides. This district is roughly at the eight-<SUP>o’clock</SUP> position on a map of Paris, and somewhat more centered than the adjacent Fifteenth.</P> </BLOCKQUOTE>

<BR>

<CENTER>

<P><SMALL>About Us | <A HREF="mailto:info@frenchboard.com">Contact Us</A> | Help | Site Map<BR>

<HR>

French Tourist Board &#149; 1234 Champs Elysee, Paris, France &#149; 01-456-123-1234

<BR>Last Updated: 05/01/02</SMALL></P>

</CENTER>

</BODY>

</HTML>


When you have multiple images to put on a page, it is best to use "thumbnail" versions of the images (smaller visually and physically). The more images you have the longer it takes for your page to load. So for each photo you have, make another version of it that is smaller and provide links to the larger versions. It's not enough to change the width and height to make an image smaller; it will only appear smaller, in reality it is still the same size.

EXAMPLE 4

<HTML>

<HEAD>

<TITLE>The Eiffel Tower</TITLE>

</HEAD>

<BODY BGCOLOR="#FFFFCC" TEXT="#000066" LINK="#FF0000" VLINK="#0000FF" ACTIVE="#00FF00">

<P ALIGN=CENTER>[ <A HREF="index.html">HOME</A> ] [ <A HREF="http://www.paris.com">PARIS</A> ] [ NOTRE DAME ] [ THE EIFFEL TOWER ]</P>

<H1 ALIGN=CENTER>The Eiffel Tower</H1>

<IMG SRC="images/eiffeltower.jpg" HEIGHT="330" WIDTH="150" BORDER="1" ALT="PHOTO: The Eiffel Tower" ALIGN="left" HSPACE="10">

<P ALIGN=JUSTIFY><FONT COLOR="#0000CC" SIZE="4">The Eiffel Tower</FONT> is located on the <B>Left Bank</B> (<I>that is, the southern bank</I>) of the Seine river, at the northwestern extreme of the <EM>Parc du Champ de Mars</EM>, a park in front of the École Militaire that used to be a military parade ground (<SMALL><I>whence the name</I></SMALL>), in the southwestern portion of the city. The four pillars supporting the tower are aligned to the points of the compass, and the base covers almost exactly the area of two (<SUB>American</SUB>) football fields placed side by side lengthwise.</P>

<P ALIGN=JUSTIFY>The nearest Métro stations are <FONT SIZE="4">Bir-Hakeim</FONT> to the southwest, and <FONT SIZE="4">Trocadéro</FONT> to the northwest. The former is at the same level as the tower and somewhat closer, but less scenic; the latter is on the side of the <BIG>Parvis (<U>Plaza</U>) du Trocadéro <STRIKE>opposite the tower</STRIKE></BIG>, so if you get off at that station, you can take a very scenic walk through the Trocadéro and down across the Seine to the tower, with many good photograph opportunities. One of my pictures of the tower was taken from this location.</P>

<BLOCKQUOTE><P ALIGN=JUSTIFY>The area of the tower is in the <FONT FACE="courier" COLOR="#660066">chic</FONT> seventh <FONT FACE="courier" COLOR="#00AA00">arrondissement</FONT> of Paris, also the home of the National Assembly, the Prime Minister’s palace, and the Hôtel des Invalides. This district is roughly at the eight-<SUP>o’clock</SUP> position on a map of Paris, and somewhat more centered than the adjacent Fifteenth.</P> </BLOCKQUOTE>

<BR>

<P>Click on each image to view the larger version.</P>

<CENTER>
<A HREF="images/arch.jpg"><IMG ALT="PHOTO: Arch" SRC="images/arch_small.jpg" HEIGHT="74" WIDTH="70" BORDER="1" HSPACE=5 ALIGN="top"></A>
<A HREF="images/bigben.jpg"><IMG ALT="PHOTO: Big Ben" SRC="images/bigben_small.jpg" HEIGHT="70" WIDTH="32" BORDER="1" HSPACE=5 ALIGN="top"></A>
<A HREF="images/operahouse.jpg"><IMG ALT="PHOTO: Opera House" SRC="images/operahouse_small.jpg" HEIGHT="36" WIDTH="70" BORDER="1" HSPACE=5 ALIGN="top"></A>
</CENTER>

<CENTER>

<P><SMALL>About Us | <A HREF="mailto:info@frenchboard.com">Contact Us</A> | Help | Site Map<BR>

<HR>

French Tourist Board &#149; 1234 Champs Elysee, Paris, France &#149; 01-456-123-1234

<BR>Last Updated: 05/01/02</SMALL></P>

</CENTER>

</BODY>

</HTML>


To put an image in the background of a page, the image is declared in the <BODY></BODY> tag. The original image is usually a small image (physically and visually). It's best to keep the file size under 4 or 5K (ideally 1 or 2K). The browser takes the image and repeats it over the entire screen. Here's the actual image used for Example 5.

background tile

EXAMPLE 5

<HTML>

<HEAD>

<TITLE>The Eiffel Tower</TITLE>

</HEAD>

<BODY BACKGROUND="images/bg_blue.jpg" BGCOLOR="#FFFFCC" TEXT="#000066" LINK="#FF0000" VLINK="#0000FF" ACTIVE="#00FF00">

<P ALIGN=CENTER>[ <A HREF="index.html">HOME</A> ] [ <A HREF="http://www.paris.com">PARIS</A> ] [ NOTRE DAME ] [ THE EIFFEL TOWER ]</P>

<H1 ALIGN=CENTER>The Eiffel Tower</H1>

<IMG SRC="images/eiffeltower.jpg" HEIGHT="330" WIDTH="150" BORDER="1" ALT="PHOTO: The Eiffel Tower" ALIGN="left" HSPACE="10">

<P ALIGN=JUSTIFY><FONT COLOR="#0000CC" SIZE="4">The Eiffel Tower</FONT> is located on the <B>Left Bank</B> (<I>that is, the southern bank</I>) of the Seine river, at the northwestern extreme of the <EM>Parc du Champ de Mars</EM>, a park in front of the École Militaire that used to be a military parade ground (<SMALL><I>whence the name</I></SMALL>), in the southwestern portion of the city. The four pillars supporting the tower are aligned to the points of the compass, and the base covers almost exactly the area of two (<SUB>American</SUB>) football fields placed side by side lengthwise.</P>

<P ALIGN=JUSTIFY>The nearest Métro stations are <FONT SIZE="4">Bir-Hakeim</FONT> to the southwest, and <FONT SIZE="4">Trocadéro</FONT> to the northwest. The former is at the same level as the tower and somewhat closer, but less scenic; the latter is on the side of the <BIG>Parvis (<U>Plaza</U>) du Trocadéro <STRIKE>opposite the tower</STRIKE></BIG>, so if you get off at that station, you can take a very scenic walk through the Trocadéro and down across the Seine to the tower, with many good photograph opportunities. One of my pictures of the tower was taken from this location.</P>

<BLOCKQUOTE><P ALIGN=JUSTIFY>The area of the tower is in the <FONT FACE="courier" COLOR="#660066">chic</FONT> seventh <FONT FACE="courier" COLOR="#00AA00">arrondissement</FONT> of Paris, also the home of the National Assembly, the Prime Minister’s palace, and the Hôtel des Invalides. This district is roughly at the eight-<SUP>o’clock</SUP> position on a map of Paris, and somewhat more centered than the adjacent Fifteenth.</P> </BLOCKQUOTE>

<BR>

<CENTER>

<P><SMALL>About Us | <A HREF="mailto:info@frenchboard.com">Contact Us</A> | Help | Site Map<BR>

<HR>

French Tourist Board &#149; 1234 Champs Elysee, Paris, France &#149; 01-456-123-1234

<BR>Last Updated: 05/01/02</SMALL></P>

</CENTER>

</BODY>

</HTML>

 


WEB DESIGN: Basics • Last Modified: 5/1/02