|
| alt | alternative name for text browsers |
| align | top -aligns text with top of picture middle -aligns text with middle of picture bottom -aligns text with bottom of picture |
| align | left -moves picture to left margin with text beside height of picture right -moves picture to right margin with text beside height of picture |
| width | number of pixels to display on screen |
| height | number of pixels to display on screen |
| vspace | number of pixels to add as vertical spacing |
| hspace | number of pixels to add as horizontal spacing |
| border | number of pixels to add as a border to picture |
| ismap | tag that indicates that picture is a click-able image-map |
| ??? | where is my picture |
default - no options | text at bottom |
![]() | [pepper] - displayed by text browsers |
![]() | text at top |
![]() | text at middle |
![]() | text at bottom |
![]() |
This will align the picture to the left side of the current margin. Notice that the
text in this situation will continue along the side the picture until there is
enough clearance for the text to go underneath the picture. |
![]() | This will align the picture to the right
side of the current margin. Notice that the text in this situation will
continue along the side of the picture until there
is enough clearance for the text to go underneath the picture. |
| ![]() |
Pictures sometimes need some padding around the outside of their borders. The vspace and hspace tags will accomplish this. 
![]() |
![]() |

The entire image is (54,84). The default is defined as, if you don't click on any specific object you must have clicked on the default (here it is the yellow background area.) The rectangle (rect) starts at (8,8) upper left and goes down to (47,30) lower right. You can write down the coordinates after you have the image displayed in Netscape (or there are programs that will generate an image-map based on the overlaying shapes you draw). The circle (circ) starts about (12,30) and goes to (43,64). The polygon (poly) has five separate vertices -- so ending in the starting position, you have six points. Kind of reminds me of connect the dots from a few years back.This file must be uploaded to your storage area and referenced from your html document. The cgi-program that translates the image-map must be available on the Server.
|
<IMG SRC="gif/mapdemo.gif"
USEMAP="image.shtml#FourColorMap">
<MAP NAME="FourColorMap">
<AREA SHAPE="RECT"
COORDS= "8,8 47,30" HREF="red.shtml">
<AREA SHAPE="circle"
COORDS= "27,46 16" HREF="green.shtml">
<AREA SHAPE="poly"
COORDS= "2,45 27,79 49,48 49,80 0,80 2,45"
HREF="blue.shtml">
</MAP>
|
|
|
© 2006 TRIO | Tutorials | bwjames@usd.edu | Back to HTML 101 |