w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.0 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
Mosaic icon 1.0 2.0      
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      

<img>

empty
CSS: in-line element
start tagrequired
end tagforbidden
Sandia Reference
Link to Site Map

This tag is the workhorse of HTML. If you can't do it in HTML, use a picture. This is the element that controls how that picture is displayed.

Before we get to the particulars of this tag, I would like to introduce you to "Max". He is a Shih-Tsu, Poodle cross that we adopted from the local Humaine Society Shelter. He is an absolute joy and has given us much pleasure and enrichment to our lives. He is the perfect subject for this tag. You can't get tired of looking at him.

align=
deprecated
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
"Browsers are not expected to apply text flow retrospectively, so using ALIGN=MIDDLE and ALIGN=BOTTOM may overwrite previous lines of text. If the ALIGN attribute is missing then ALIGN=TOP is assumed." (HTML+)

Forces the alignment of the surrounding text with the image. Note the operative word here is text. The image sits where you place it, only the text moves, relative to the image.

This causes another situation to be presented. How do I center an image? Well, Netscape has the <center> tag.

Example:
<center>This is centered text<br>and the Max image<img src="max.jpg" width="151" height="142" hspace="5" vspace="5" align="middle"> from above. This is text after the image. Note that the text on both sides of the image dictate where "center" actually is.</center>

This is centered text
and the Max image from above. This is text after the image. Note that the text on both sides of the image dictate where "center" actually is.

I have not been able to get text to "flow" around both sides of the image... yet. I have found the only way is with tables, but that is an absolute pain to control.

Microsoft does not recognize the <center> tag so you have to do it a little differently. Fortunately, Netscape 2.0+ will recognize the <p> tag so you need only use one structure.

Example:
<p align="center">This is centered text<br>and the Max image<img src="max.jpg" width="151" height="142" hspace="5" vspace="5" align="middle"> from above. This is text after the image. Note that the text on both sides of the image dictate where "center" actually is.</p>

This is centered text
and the Max image from above. This is text after the image. Note that the text on both sides of the image dictate where "center" actually is.
I have not been able to get text to "flow" around both sides of the image... yet. I have found the only way is with tables, but that is an absolute pain to control.

"absbottom"
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9        
<img src="max.jpg" width="151" height="142" align="absbottom">
This is the absolute bottom of something. I'm not sure what, yet.
"absmiddle"
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9        
<img src="max.jpg" width="151" height="142" align="absmiddle">
What does absolute middle mean? Does this mean that all of the text is centered above and below the middle of the image?
"baseline"
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9        
<img src="max.jpg" width="151" height="142" align="baseline">
Baseline is a little more intelligible. It should mean that the image is aligned with the baseline of the line of text.
"bottom"
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9        
"... ALIGN=BOTTOM to align the bottom of the image with the bottom of the current text line." (HTML+)

<img src="max.jpg" width="151" height="142" align="bottom">
this forces the adjacent line of text to start aligned with the bottom of the image and subsequent lines to wrap below the image.

"bottom"
WebTV 0.9 1.2      
WebTV is the only source of this argument.
"left"
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
<img src="max.jpg" width="151" height="142" align="left">
this inserts the image on the left of the window and wraps the text around to the right. In this instance, the paragraph is left intact as it wraps around the image. There is no extra white space between lines of the text. See also BR CLEAR. This is separated from below with <br clear="left">.
This is two images, both aligned "left". I tried setting the border="0" but it made no difference. There is still a small "white space" between the two images.
"middle"
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
"...use ALIGN=MIDDLE to align the center of the image with that of the current text line..." (HTML+)

<img src="max.jpg" width="151" height="142" align="middle">
this forces the adjacent line of text to be aligned with the middle of the image. The next line would continue below the image.

"right"
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
<img src="max.jpg" width="151" height="142" align="right">
this forces the image flush right and wraps the text around the image on the left. See also BR CLEAR.
"texttop"
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9        
<img src="max.jpg" width="151" height="142" align="texttop">
This should align the text "at the top?". This is one of those elements that seems to make no sense.
"top"
default
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
"The ALIGN=TOP attribute ensures that the top of the image is level with the top of the current text line." (HTML+)

<img src="max.jpg" width="151" height="142" align="top">
causes the text to be aligned with the top of the image. It continues across the window and the next line begins on the line below the image.

alt=
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
<img src="max9.jpg" align="absbottom" alt="substitute text for a missing image.">
substitute text for a missing image.

This attribute provides a method of introducing text in the event that a browser cannot download in-line images. If you need to see this one work, turn off "auto load images" and reload the page.

ani=
WebTV 0.9        
A WebTV Tag.
Use the ani attribute to set the URL of an animation cell resource.

Since the ani attribute is a WebTV extension, use the src attribute to specify an image that other browsers can display instead of the WebTV animation.

animateonselect
WebTV 0.9        
A WebTV tag:
"Use the animateonselect attribute with the ani attribute to start an animation in motion only after the viewer has selected it. Each time that the viewer selects the image, the animation restarts."
anistartx=
WebTV 0.9        
a WebTV tag:
"Use the anistartx attribute to set the initial position of the animation, relative to either the page or the table cell that contains it. The origin of the coordinate system is the top-left corner of the container, with positive values of x going to the right and positive values of y going down. There is no default value for anistartx; the attribute is not used if it is not specified."
anistarty=
WebTV 0.9        
A WebTV tag:
"Use the anistarty attribute to set the initial position of the animation relative to either the page or the table cell that contains it. The origin of the coordinate system is the top-left corner of the container, with positive values of x going to the right and positive values of y going down. There is no default value for anistarty; the attribute is not used if it is not specified.

Use the anistarty attribute with the ani attribute."

border=n
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1n 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
<img src="max.jpg" width="151" height="142" border="15" align="left">
this specifies the size of the border that is positioned around the image. The unit of measure is a pixel. The default is supposed to be about 5 pixels and 0 cancells the border out. The other images on this page do not have a border set. Take a look. The "default" is not "5" but appears to be "0". This border is set at 15 pixels. The image on the right is set as a hypertext link. Notice the entire border takes on the link colours.
class=
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.0 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
controls=
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
if a video clip is present, a set of controls is displayed under the clip.
dir=
w3c icon + 2.0 3.0 3.2 4.0
"ltr"
"rtl"
dynsrc=
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
This specifies the address of a video clip to be displayed in the window. It is also used for VRML. It stands for Dynamic SouRCe.
height=
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1n 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
<img src="max.jpg" align="left" height="100"> <img src="max.gif" align="right" height="100">
This is one of two attributes that control the space occupied by an image. If the image does not fit, the browser should rescale the image to fit the specified dimensions. The size is stipulated in pixels. The height of the image has been changed from 142 to 100 pixels. Notice in this instance, the Browser scaled the whole picture, preserving the aspect ratio. The image on the left is a "*.jpg" image and on the right is a "*.gif" image.

<img src="max.jpg" align="left" width="100" height="50">
<img src="max.gif" align="right" width="100" height="50">
This pair of images uses both the height="" and width="" attributes. Notice, the browser does not "shrink" the image it changes it dramatically. Again, the image on the left is a "*.jpg" image and the one on the right is a "*.gif" image.

hspace=
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1n 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
<img src="max.jpg" width="151" height="142" align="left" hspace="15">
This can be combined with "vspace". These two attributes specify the "white space" around the image. Hspace stipulates the amount of space to be put on either side of the image. This space is not coloured when it is a hypertext link as border is. The Unit of measure is a pixel. You will notice that the space between the text and the image is greater than the space on the other images.
id=
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.0 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
ismap=
w3c icon + 2.0 3.0 3.2 4.0
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1      
WebTV 0.9 1.2      
"Identifies the picture as a server-side image map. Clicking the picture transmits the coordinates of the click back to the server, triggering a jump to another page." (Microsoft)
lang=
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.0 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
list of language codes
list of country codes
loop=
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
This attribute is used with with a video clip and dictates how often the clip is repeated. n specifies a finite number of times that the clip is repeated. infinite repeats the clip as long as the page is active or until it is stopped.
"n" repeat the clip "n" times.
"infinite" repeat the clip indefinately until stopped.
lowsrc=
Netscape icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      

This attribute allows the downloading of a low resolution "src" or a reduced size "src" that will be replaced by a larger/more detailed image later in the download. An example of this can be found at: WWW.HIGHWAY57.CO.UK. When you access the page, look at the initial image. It is a pencil mock-up of the page. Watch closely, it will almost immediately be filled in with the proper image. It is a Netscape 1.1 extension.

Example:
The image on the left is the low resolution file. The image on the right is the high resolution image.

GIFJPG
lowsrc=13948124
src=225019333

The image(s) on the left are the *.gif implementations whereas the ones on the right are *.jpg.
Reload the images several times. Unless your system is very fast, you should be able to see the low resolution image briefly before the high resolution one loads.
Note: you cannot mix the formats. I tried the *.gif file with the *.jpg file - it didn't work.
Second Note: Take a look at the gyrations that I had to go through to format this properly for the page. It's quite a look. What's a real pain is that MSIE won't recognize <p align="left">. It ignores it.

md=
w3c icon + 2.0 3.0 3.2 4.0
This attribute specifies the message digest or chyptographic checksum (MD5 in base 64). The MD attribute is generally allowed for all elements which support URI based links.
name=
w3c icon + 2.0 3.0 3.2 4.0
WebTV 0.9 1.2      
The HTML 4.0 specification includes a link to <forms> for this attribute. However, on clicking on the link it leads to <map>. No other explanations were given.
naturalsizeflag= Question: "Where did you find the attribute 'NATURALSIZEFLAG="3"'. Can you give me source, publication, Author, browser, proposed HTML # or Level, group or anything at all?"

Answer:

It's an irritation from Adobe's Pagemill("PML") & Sitemill("SML"), WYSIWYG HTML editors currently shipping for the Mac, in the works for Windows. They always write out width and height attributes on every image. Here's their explantion for the tag:

    The problem comes with this scenario:
  1. Drag image onto page. You choose not to scale or resize it.
  2. Save. PML/SML writes out the explicit width & height of the image.
  3. Update the image in an image editor or switch files in the finder, so the image dimensions change.
  4. Reopen the file in PML/SML.

Here's the question - which dimensions should it display the new logo file with? Should PML/SML use the explicit dimensions that were written out with the file, or should it change the dimensions to prevent squishing the image? HTML doesn't make a distinction between "here's the exact height & width that I want this image to be scaled to" and "here's the image's natural height and width just as a hint to make the browser run faster". However, people use the width & height ability of HTML to serve both purposes.

The NATURALSIZEFLAG makes that distinction. It tells PML/SML whether you explicitly set that dimension (either through the attribute inspector or by interactively resizing the image), or whether PML/SML wrote out the height & width for browser speed. If you scaled the image, then PML/SML will force the updated image into the dimensions indicated in the HTML file; if not, we'll resize the image and write out new height and width values.

NATURALSIZEFLAG can have four values:
0 - user explictly set height and width; use those numbers (squish)
1 - user set height explicitly, width can change freely
2 - user set width explicitly, height can change freely
3 - user hasn't set and specific size, both dimensions can change.
Typically, you'll see just 0 or 3.

from: Chris Ogden ChrisOgden@infovista.com

onAbort=
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
"Defines JavaScript code to execute when the user terminates the loading of an image." (WebTV 1.2 DTD credited to Netscape)
onError=
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
"Defines JavaScript code to execute when the JavaScript encounters an error." (WebTV 1.2 DTD credited to Netscape)
onLoad=
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
"Defines JavaScript code to execute when the image is loaded." (WebTV 1.2 DTD credited to Netscape)
reload=
WebTV 0.9 1.2      
This is a WebTV tag.
Use the reload attribute to specify how frequently the image should be reloaded. By default, there is no image reloading.
seethru=
w3c icon + 2.0 3.0 3.2 4.0
"The SEETHRU attribute can be used to designate a chromakey so that the image background matches the document background. This is an experimental feature and the format of the attribute's value has yet to be defined - suggestions are welcomed." (HTML+)
selected="n,n"
WebTV 0.9 1.2      
This is a WebTV tag.
Use the selected attribute together with the usemap attribute or the ismap attribute. With the usemap attribute, the value you set for selected is the index of an area in the initial selection in the associated client-side map. When the WebTV interface displays the page, the cursor will be positioned over this area. With the ismap attribute, the value you set for selected is the x,y pair for the initial cursor position in the image map.

Note that in either case, the coordinates for the selected attribute should be calculated relative to the image, rather than the web page. That is, the origin of the image is its top-left corner, with positive values of x going to the right and positive values of y going down.

src=
w3c icon + 2.0 3.0 3.2 4.0
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
<img src="max.jpg" width="151" height="142">
this specifies the source of the picture. It takes a "URL" as the argument.
start=
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
this is for video clips and specifies when the file should start playing. This is the default. Both argument values can be specified together.
"fileopen"
default
WebTV 0.9 1.2      
when the file is completed downloading and is open this argument starts the file running.
"mouseover"
WebTV 0.9 1.2      
This argument only starts the video running when the reader moves the mouse cursor over the animation.
style=
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.0 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
WebTV 0.9 1.2      
when used with stylesheets, this attribute allows the image to take on a specific style.
suppress=
Netscape icon 1.1n 2.0 3.0 4.0  
title=
w3c icon + 2.0 3.0 3.2 4.0
WebTV 0.9 1.2      
transparency=
WebTV 0.9 1.2      
This is a WebTV tag.
Use the transparency attribute to allow the background to show through the image. The transparency of the image can range from 0 (fully opaque) to 100 (fully transparent). The default value for transparency is 0. Note that the WebTV interface has implemented optimizations for a transparency value of 50 that make images draw faster.
units=
w3c icon + 2.0 3.0 3.2 4.0
This attribute specifies the units for the width and height attributes. It takes one of two arguments, 'units="pixels" or units="en"'. The default is pixels.
usemap=
w3c icon + 2.0 3.0 3.2 4.0
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
this identifies the map specification to be used with this image. Take a look at the CSIM page. Don't forget to turn autoload images back on.
vrml=
MSIE icon 1.0 2.0 3.0 4.0  
This was specified in the DTD for MSIE 2.0. No explanation was given as to its purpose, use or any suitable attributes.
vspace=
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1n 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
<img src="max.jpg" width="151" height="142" align="left" vspace="25">
like "hspace" above, vspace controls the white space around an image. "Vspace" adds the top and bottom white space. Unlike borders, however, "vspace" does not take a hyperlink colour when it is a link anchor. Notice that the image on the right is set as a link.
width=
w3c icon + 2.0 3.0 3.2 4.0
Netscape icon 1.1 2.0 3.0 4.0  
MSIE icon 1.0 2.0 3.0 4.0  
Opera 1.0 2.1 3.0    
WebTV 0.9 1.2      
<img src="max.jpg" border="15" align="left" width="100">
like "height" above, it stipulates the width, in pixels, of the image. This width is 100 pixels. Normally, it is 142 pixels. Again, notice that the aspect ratio is retained. I set the border to approximate the original size of the image.