Adding Inline Graphics


An inline graphic can have a significant impact on your HTML page. The gif and jpg are the file formats. You need to be careful with the file size of the gif or jpg because of the amount of time it takes to load graphics files. Try not to use many large images. Also reducing the colors to 16 can reduce the file size. The tag used to insert an inline image has the following format:

<img src="filename.gif">

Note that you can also include a directory for the location of your gif files:

<img src="\images\filename.gif">

You can also include a complete link to a URL (location) that contains the image:

<img src="http://nemesis.pitt.cc.nc.us\images\filename.gif">

This is a sample HTML document that contains an inline image:

<html>

<head>

<title> Your Title</title>

</head>

<body>

This is an example of the use of an inline graphic.<p>

<img src="gg1.jpg">

</body>

</html>

Display this document

Click here for a look at lots more inline graphics


Return to HTML Tutorial Menu