![]() |
![]() |
![]() |
![]() |
![]() |
||||
[HTML][JavaScript][Computer Stuff][Freeing the Mind]
We can insert images into a document using tags. The image on the left is
inserted by using the following code;
<IMG SRC="Back.jpg" ALT="This is the back image" BORDER="0">
The <IMG SRC="Back.jpg" part tells the browser which image to load, in this case the image Back.jpg.
The ALT= part gives the image an alternative presentation as text. That is, when you move your cursor over the image, it gives a message - 'This is back image'. This is useful for people with certain disabilities and enables search engines to read what the image is about. Putting in alternative text is therefore important.
If you do not enter an ALT message some editors put in a default. At one time if you had searched Alta Vista for "b231.gif (23175) bytes" (the default inserted by Front Page) my page would have come up straight away! So remember to put in a meaningful message because search engines as well as people use the ALT message!
The BORDER="0" removes the line
around the image when it is used as a hyperlink. Although this border tells the human
browser it is a hyperlink, some people think it's ugly and use BORDER="0"!
The image on the right has the code; <IMG SRC="button.gif" ALT="Back image" ALIGN="RIGHT">
This puts the image on the right (whereas in the first case, because there wasn't an ALIGN in the tag, it defaulted to the left.)
In both cases the text wraps around the image, as the image tag isn't a block!
To keep the image on its own without any text wrap (as with the image above and this line
of text) use the following tag:
<br CLEAR="all" > This stops the text from wrapping around the image, as in the previous cases.
Let's look at some values for alignment!
[back to: jumping to a particular place in a document]
[home][contents]
[on to: alignment]
Most Recent Revision: 18-Oct-98.
Copyright © 1998 Ken J
Ward
I am always pleased to hear from you.
Send your comments to Ken
Ward
and please visit: The New Life Course