Login    New User    Forgot Password    Help      

HTML Image Tags

GO TO INDEX

HTML Image Tags

Attribute Description HTML Code
SRC where to get the picture
<IMG SRC="../Images/smile.gif" ALT="smile">
ALT text to show if you don't show the picture
<IMG SRC="../Images/prepare.gif" ALT="prepare it">
LONGDESC URL of a long description of the image
<IMG SRC="../Images/smile.jpg" 
         HEIGHT=327 WIDTH=291 
         ALT="Starflower and Jasmine">  
         [<A HREF="longdescsfj.html" TARGET="_top">D</A>]
WIDTH how wide is the picture
<IMG SRC="smile.gif" WIDTH=105 HEIGHT=97 ALT="Starflower">
HEIGHT how tall is the picture
<IMG SRC="smile.gif" WIDTH=105 HEIGHT=97 ALT="Starflower">
ALIGN how text should flow around the picture
<IMG SRC="smile.gif" ALT="picture of a smile" ALIGN=RIGHT>
BORDER border around the picture
<IMG SRC="smile.gif" ALT="picture of a smile" 
              HEIGHT=100 WIDTH=100 BORDER=10>
HSPACE horizontal distance between the picture and the text
<IMG SRC="smile.gif" ALT="picture of a smile" 
      HEIGHT=100 WIDTH=100 HSPACE=50 ALIGN=LEFT>
VSPACE vertical distance between the picture and the text
<IMG SRC="smile.gif" ALT="picture of a smile"  
     HEIGHT=100 WIDTH=100 HSPACE=50 ALIGN=LEFT>
ISMAP is this a clickable map? <IMG USEMAP="...">
USEMAP name of the map definition  
LOWSRC a version of the picture that isn't such a big file
<IMG SRC="../Images/paulonbike.gif" 
     LOWSRC="../Images/paulonbike_lowsrc.gif" 
     HEIGHT=378 WIDTH=516 ALT="A bike and his boy">
DYNSRC  play a movie file
<IMG SRC="../Images/moonflag.gif"
DYNSRC="../Images/moonflag.mpg" ALT="Astronauts on the moon">
CONTROLS show the buttons which control the movie
<IMG SRC="../Images/moonflag.gif" DYNSRC="../Images/moonflag.mpg" 
              CONTROLS ALT="Astronauts on the moon">
LOOP how many times to loop the movie
<IMG SRC="../Images/moonflag.mpg"  
          DYNSRC="../Images/moonflag.mpg" 
           LOOP=INFINITE ALT="Astronauts on the moon">
START when to start playing the movie  
Onload script to runs after the image is downloaded
<IMG  SRC="../Images/smile.gif" ALT="picture of a smile"    
           HEIGHT=100 WIDTH=100 onLoad="alert('loaded')">
SUPPRESS Don't show icons of images that haven't downloaded yet SUPPRESS = TRUE | FALSE

GO TO INDEX