<img src="" vspace="" hspace="">
The vspace and hspace attributes of the IMG element adds white space around an image.
<img src="example.jpg" alt="Example" vspace="5" hspace="5">
Attribute |
Value |
Explanation |
vspace=" " |
pixels |
vertical white space (the top and bottom sides) |
hspace=" " |
pixels |
horizontal white space (the left and right sides) |
The use of these attributes is deprecated. (Use CSS instead)
Example