next up previous contents
Next: External Images, Sounds, Video Up: Basic HTML Programming Previous: Preformatted Text

In-Line Images

Most browsers can display in-line images that are in JPEG or GIF format. Use the img tag with src attribute to include an image in you HTML page:

<img src=image_link>

where image_link is the the relative, absolute or remote URL link of the image file.

Example:

<p align = center>
An image mixed in with text <br>

<img src="Images/gromit.gif" align=middle 
alt="wallace and gromit">
</p>

Which looks like this when viewed from a browser:

An image mixed in with text
wallace and gromit
In-line Image and Text



dave@cs.cf.ac.uk