Lesson 5: HTML Graphics
(Image Spacing Attributes)

The "vspace" and "hspace" attributes of the image tag define the vertical and horizontal spacing around a graphic.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Graphic Spacing Example</title>
</head>

<body bgcolor="#bdbdbd" text="white" link="blue" vlink="purple">
<center>
<b>
<font size="+2">Easy as 1, 2, 3</font><br />
</b>
<br />
<img src="images/1ball.gif" width="31" height="31" 
     hspace="0" alt="1" />
<img src="images/2ball.gif" width="31" height="31" 
     hspace="0" alt="2" />
<img src="images/3ball.gif" width="31" height="31" 
     hspace="0" alt="3" />
<br />
<img src="images/1ball.gif" width="31" height="31" 
     hspace="0" alt="1" />
<img src="images/2ball.gif" width="31" height="31" 
     hspace="9" alt="2" />
<img src="images/3ball.gif" width="31" height="31" 
     hspace="0" alt="3" />
<br />
<img src="images/1ball.gif" width="31" height="31" 
     hspace="9" alt="1" />
<img src="images/2ball.gif" width="31" height="31" 
     hspace="9" alt="2" />
<img src="images/3ball.gif" width="31" height="31" 
     hspace="9" alt="3" />
</center>
</body>
</html>