Images

Here you will learn how to put an image on a web page so lets have a look at the image tag

<img src="image.jpg" width="100" height="100" alt="myimage" />

The image tag uses quite a few attributes so lets have a look and see what they are. The first one is called src and this is where you put the location of the image. Make sure you also have the file type included. Next we have the width and height which defines the shape of the image. If your image is larger it will shrink to the width and height u set in the tag. Lastly we have the alt which will display "myimage" if the image cant be loaded.

So lets have a look at the output 

                                                                                                                                                                             

This free website was made using Yola.

No HTML skills required. Build your website in minutes.

Go to www.yola.com and sign up today!

Make a free website with Yola