<img src="/images/wslr/#####/yourpicture.jpg" alt="John
Wilson with August Busch" height="105" width="156">
(where ##### is your wholesaler number)
Alt
The "alt" attribute creates the text which appears in
the place where the image is loading, or where the images would
be when people browse with their images turned off. The devices
which read web pages aloud for people with visual impairments read
the "alt" attribute in the place of the image, so be sure
to make them descriptive, not just "picture 01."
Height and Width
If you use the "height" and "width" attributes
on your images, your page will load faster because the computer
doesn't have to wait for the picture to come down before it knows
how much room to leave.
Align="Left" Align="Right"
The "align" attribute with images is mainly used to influence
the text around them. It's tricky, but once you understand it, you'll
be able to let your text flow around your images.
DEFAULT - If you do not specify an alignment inside an image tag,
all text will start at the bottom right corner of the image and
then wrap underneath the image, like this:
Text
starts here and continues until it reaches the end of the line and
then wraps underneath the picture.
LEFT - If you set the image to align="left" then
the image moves to the left, as you would expect, and the text begins
at the upper right hand corner, like this:
Text
starts here and continues and continues until it reaches the end
of the line and then it keeps going and going and going and going
and going and going right beside the picture until it runs out of
space and has to wrap underneath the picture.
RIGHT
- The odd one is align="right". If you set the
image to align="right" then the image moves to the right
as you would expect, and the text begins as far left as it can go,
with the top of the text level with the top of the picture. It continues
down the page until it runs out of space and begins to wrap underneath
the picture. This seems reasonable, right? So what's odd about it?
Well, when you look at your HTML code, you would expect the text
to appear first because it starts at the upper left, whereas it's
the right-aligned picture which appears first in the HTML code.
MIDDLE
Here is a somewhat odd one, where the image is set to align="middle".
The text starts in the middle to the right of the picture and then
wraps underneath the picture. I've never found a use for this one,
unless the text was very short and didn't wrap.
By the way, align="right" and align="left"
work the same way on whole tables, so you can actually wrap text
around small tables, too.
Hint: If you just want to put a picture
(by itself) on the right or left or in the center,
use a <div></div> tag set around the picture, like this:
<div align="center"><img src="
"></div>
You can also put an alignment in a table cell, which makes everything
in that cell be right or center justified, like this:
<td align="right"></td>
<td align="center"></td>
The default is align="left" so you don't
have to specify it. |