So you have your image file, either a GIF file or a JPEG. How do you get it into a web page? You do so with the IMG tag in HTML. The basic IMG tag looks like this:
<IMG SRC=”some_image.gif”>
There are no closing tags for the IMG tag. So you don’t do this:
<IMG SRC=”some_image.gif”></IMG>
In between a pair of angle brackets, you type the letters IMG (short for image, of course). After a space, you type SRC. This stands for Source and means the location of your image. After an equals sign, you type the name of your image between a pair of double quotes.
It’s essential that you get the SRC part right, though. To do that, you need to know about Absolute versus Relative file referencing.
No comments:
Post a Comment