vspace (HTML attribute)

Depr. Version
Yes HTML 2


vspace="surrounding vertical space in pixels"


The vspace attribute is similar to the hspace and provides a bit of ‘breathing space’ above and below an applet, although it is not exactly a precision design tool.


The vspace attribute set to "30" pixels around a left-aligned applet:

<applet code="ticker.class" align="left" vspace="30">


A number representing the height of spacing above and below the applet 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.

User-contributed notes

There are no comments yet.

Related Products