Free Web space and hosting from freehomepage.com
Search the Web


HOME
BASIC TUTORIAL
What is Html?
Sample Web Page
Basic Tags
Character Entities
Html Links
Frames
Tables
Lists
Forms
Images
Backgrounds
APPENDIX
Html Tag List

Images

The <img> tag defines an html image. The image tag must have its attributes, and doesn’t have a closing tag. The src attribute (“src” stands for source) is used to display an image on the page. To create an image on a page, use the following tag:
<img src=”url”>

The url is the location where the image is stored. If the image was called “image.jpg” and was located in the “images” directory on “htmltutorial.com”, the url would be: “http://www.htmltutorial.com/images/image.jpg”.
NOTE: Image files must usually be .jpg or .gif flies.
The browser will show the image right where you put it in the document. If the browser can’t display the image for some reason, you can use the
alternate attribute to display text instead. It is a good idea to use the alternate attribute regularly, so that anyone can view your pages with ease.
NOTE: Don’t overdo it on images. Remember that the more images you have, the longer the page will take to load.
To learn how to add a background to your html files, click on “next”.

Much of what I learned to create this tutorial I found on www.w3schools.com.
Back to Top
Lewisville Middle School-2003