DescriptionWhen an image is aligned left or right, text will flow around the image, but no space will appear between the text and the image edge. The
vspace) attribute provides a little breathing space, but it applies space on both sides of the image, which is not entirely flexible, as Figure 1 shows.
hspace attribute is set to
pixels around a left-aligned image:
<p><img src="giant-prawn.jpg" alt="The Giant Prawn at Ballina" align="left" hspace="10"/>Driving along, we spotted a giant prawn, so we had to stop and take a closer look.</p>
This attribute takes as its value a number that represents the width of spacing on either side of the image in pixels.
Although support for this attribute is good, it’s now deprecated, and is highly presentational in its nature. The desired visual effects can all be achieved with CSS and, as such, this attribute shouldn’t be used—it’s presented here for informational purposes only.