Things You'll Need:
- Computer
- Basic knowledge of HTML
- A digital image
- Website
- FTP connection
-
Step 1
Upload your image to your web server using your FTP client in a directory called "images". Then copy down the image name and location. You will need to include this location in the image tag. If you put all your images in a directory called images, the image location will be "images/image-name.jpg".
-
Step 2
Insert the HTML tag <img src="#"> where you want the image to appear. The <img src> tag tells the browser that it needs to display an image.
-
Step 3
In order to make your browser "go and get" the image, and display it in the web page, you need to enter the location of the image, so the browser can find it. So, enter the image location in the <img src="#"> tag. If your image is called "my-first-html-image.jpg" and it is located in the images directory on your web server, you would insert this location in the HTML tag. It would read <img src="/images/my-first-html-image.jpg">.
-
Step 4
Add the border tag "border=1" inside the <img src> tag, if you want a border, and then enter alternate text, inside the tag. This is the text that displays on your visitor's screen as the image is loading. If you have an image of a car, you could add "alt=new car picture", or something to that effect. That is how to add an image to your website.








