How to make a space in your html document

February 2017

Most browsers do not show spaces as they truncate them into a single space. No matter how many spaces are added in the code, a browser will only show one. It is not necessary to be a webmaster in order to know how to make a space in your HTML document. HTML tags recognize a non-breaking space. This method is the first way to insert a space in the HTML document. Spaces can also be inserted through the advanced settings in their CSS files. A basic knowledge of HTML may be required to understand the pros and cons of making a space in your HTML document through the code.

In HTML, a browser will not display consecutive spaces between letters. They will always display only the first one. To get around this, you should use the following place-holder code:

There are also advanced settings that you can change in your CSS file that will allow the spaces to be inserted automatically. More information about this can be found here.

Note: You will need basic understanding of HTML to be able to make sense of the codes and their uses.


Published by netty5. Latest update on February 6, 2012 at 04:39 AM by Paul Berentzen.
This document, titled "How to make a space in your html document," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (