Html blank space usage
Detailed description how to use HTML blank space entity to display more space characters in your text.
Tutorial info:
| Name: | Html blank space usage |
| Total steps: | 1 |
| Category: | Basics |
| Date: | 2010-09-23 |
| Level: | Beginner |
| Product: | See complete product |
| Viewed: | 2364 |
Bookmark Html blank space usage
Step 1 - The HTML blank space usage
Html blank space usage
For newbies in HTML development it is usually a very annoying discovery that browsers always truncate spaces. So it makes no difference if you put a single space between two words or twenty as you can see in the following examples:
And the output is:
Fortunately there is a simple solution to the blank space problem. Using the special html code (html entity) which is the code of the non breaking space. Using this you can add as many space as you want between two item. Let’s see the above example again but in this time with using the non breaking space entity instead of simple spaces:
Which results the following output:
Note: To build your layout structure use CSS positioning instead of codes.
Tags: html blank space, text space, blank tag, space character
| Html blank space usage - Table of contents |
|---|
| Step 1 - The HTML blank space usage |