Latest

recent

HTML img vspace Attribute

Definition and Usage

The vspace attribute specifies a whitespace margin on the top and bottom of the image.

Compatibility Notes

The vspace 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: 20px 0px"/>


Syntax

<img vspace="pixels" />

Syntax Example

<img vspace="20" />

Attribute Values

Value Description
pixels Specifies the top and bottom whitespace margin of the image in pixels.Note: You cannot set a different value for top and bottom whitespace margin with this attribute.
HTML img vspace Attribute Reviewed by 1000sourcecodes on 04:22 Rating: 5
Powered by Blogger.