The IMG Tag
Use the <IMG> tag in your HTML document to insert images. The basic syntax of
this tag is:
<IMG SRC="URL">
Where IMG states this is an inline image, and SRC specifies the source of the image as
a URL. The <IMG> tag does not use an ending tag (</IMG>).
The <IMG> tag is a point tag. We learned in the previous chapter that an URL
(Uniform Resource Locator) is a file which can reside locally on the server or on
another server.
Here are some important things to remember about an image:
- The file specified should be an image in binary form, preferably in one of the following formats since most browsers support them.
- The image file should not be too large because:
- It will take a long time to load.
- It may be too big for the display window.
What else should the <IMG> tag have?