KnowledgeBoat Logo
|

Computer Studies

Write all the steps to add space around pictures/images in an HTML document

HTML Advanced Features

14 Likes

Answer

To add space around pictures/images in an HTML document, we can use the tags 'Hspace' and 'Vspace'. Hspace adds white space to the left and right of the pictures and Vspace adds white space above and below the pictures.

Syntax:

<img src = "URL/Path" Hspace = "space in pixels" Vspace = "space in pixels">

Example:

<img src = "d:/images/computer.jpg" Hspace = "100" Vspace = "30">

Answered By

6 Likes


Related Questions