Create space in html

There are different ways of making space in HTML code some are given below.


i)<pre>
HTML Code: <pre>space   |      space|       space</pre>
Result: space   |      space|       space


ii)&nbsp;

HTML Code : spce|space|space
Result:  spce|space|space

HTMLcode: space&nbsp;|&nbsp;space&nbsp;&nbsp;|&nbsp;&nbsp;space
Output: space | space  |  space


iii) padding
HTML Code: <div style="padding-left:10px">space    | space |   space</div>
Result:                   space    | space  |   space

Comments