The Titans

Power To Dream and Strength To Achieve

Saturday 22 October 2011

HTML Blank Space and line break

Many times we have to use blank space in our html code to place objects or text in proper location. This is very simple in html. We will use in our menu system to achieve desire location.

Link1|Link2|Link3|link4


Now let us add one blank space   before and after each | to give some blank space.

Link1 | Link2  |  Link3 | link4


To add one more blank space we have to use   before and after the |  to place one more blank space. 

Link1 |  Link2   |   Link3  |  link4

Here is the code of the above line

Link1 |  Link2   |   Link3  |  link4

See the use of     to get blank space.

By using padding

This line starts after some blank space at left, here is the code.

<span style="padding-left:20px">This line starts after some blank space at left</span>

To get a blank line break we can use <br> tag in html. 

0 comments:

Post a Comment