HTML Image Hspace Vspace Spacing

 

HTML Image Hspace and Vspace Spacing

If you’re in need of an HTML code for your webpage that will enable you to specify the spacing between your web page images, this HTML image Hspace and Vspace spacing tag is for you.

In the example below, although the images are the same, they aren’t diplaying the same, as their vertical and horizontal alignment is different.

 

These images haven’t been placed within an HTML table and aren’t aligned via CSS. They are being displayed via the HSPACE and VSPACE attributes, which will enable you to specify the horizontal and vertical spacing between your images.

Spacing Webpage Images with HTML – Example 1

<img src="yourimage.jpg" hspace="20" vspace="20" width="112" height="136" border="0"><img src="yourimage.jpg" hspace="5" vspace="5" width="96" height="134" border="0">

Copy and paste the above HTML code into the HTML portion of your webpage.

You can specify the horizontal and vertical spacing by editing the VSPACE and HSPACE values.

Spacing Webpage Images with HTML – Example 2

<img src="yourimage.jpg" hspace="40" vspace="40" width="96" height="134" border="0"><img src="yourimage.jpg" hspace="5" vspace="5" width="112" height="136" border="0">

Copy and paste the above HTML code into the HTML portion of your webpage.

Change the horizontal and vertical spacing by editing the VSPACE and HSPACE values.

This concludes the HTML image Hspace Vspace spacing code.

 

 

 
Visit the following pages for a wealth of copy and paste codes and tips:

HTML Tips
Copy and paste special effect HTML codes for your web page.

HTML Codes
An HTML codes chart you can use to copy and paste codes into your web page.

HTML Color Codes
An HTML color codes chart you can use to copy and paste color codes into your web page.

JavaScript Codes
Copy and paste special effect JavaScript codes for your web page.

Web Design Tips
Tips, tricks, and special effect codes for your web page.

HTML Tags
A list of HTML tags.

HTML 5 Tags
A list of the latest HTML tags to be developed.

ASCII Codes
Special text characters and code for your web page.