Definition and Usage The hspace attribute specifies a whitespace margin on the left and right of the image. Compatibility Notes The hspace...
Definition and Usage
The hspace attribute specifies a whitespace margin on the left and right of the image.Compatibility Notes
The hspace attribute of the img element was deprecated in HTML 4.01 and is not supported in XHTML 1.0 Strict DTD.Use CSS instead.
CSS syntax: <img style="margin: 0px 20px"/>
Syntax
<img hspace="pixels" /> |
Syntax Example
<img hspace="20" /> |
Attribute Values
Value | Description |
---|---|
pixels | Specifies the left and right whitespace margin of the image in pixels.Note: You cannot set a different value for left and right whitespace margin with this attribute. |