HTML Images
Web Development November 21st, 2008To put an image on your website first take care of these two steps:
1. You have an html file, eg: index.html
2. Your image is in the same directory, eg: photo.jpg
Now insert this code into your html file:
<img src="photo.jpg" />
Alternatively, you can specify an image height/width, but that's not necessary because it can distort the image and if you ever replace photo.jpg with a different sized image it will appear wrong. The browser automatically knows how to size your photo.

Recent Comments