HTML Chapter 4




Skip to Chapter   1  2  3  4  5  6  7  8 

                                                              Chapt 4 -- Images






<img>

No site would be complete without images so I included this very short chapter to teach you about the attributes and how to use them.
You put an image in you page by typing <img>. Note that this tag, unlike others, does not have an </img> tag.
To tell the browser where to find the image you are looking for type src="". Inside the double quotes("") put the URL(a.k.a. address) of your image. FYI: most versions of Netscape do not support bmp files
All images must have the src command in their tag so the browser can find the image.
An example of an image would be:
<img src="images\HTMLtitle.jpg"> displays
Here is a list of other attributes of the <img> tag:
<img align="center"> center the image
<img alt="HTML"> This will show a small box with the text "HTML" in it when you move your mouse over the image
<img border=13> This attribute gives the image a border of 13 pixels
<img height=200> This forces the image to have a height of 200 pixels
<img width=300> This forces the image to have a width of 300 pixels
There are attributes for an image that are much more advanced, but we only need to make, and format images. We do not need them to do back-flips.
In the next chapter we will go over backgrounds
text Images Backgrounds