1. Technology

Is there an HTML space tag?


Question: Is there an HTML space tag?

It can be very frustrating to add a bunch of spaces to your HTML only to have them disappear because of how HTML handles spaces. An HTML space tag would be very convenient for creating spaces.


There is no such thing as an HTML space tag. This is unfortunate, as HTML compresses all space characters (tabs, spaces, even carriage returns) down to one character. This means that if you’re going to indent your paragraphs, you can’t simply type 5 spaces and then begin your text.

Alternatives to an HTML Space Tag

There are several options you have to create white space on your web pages:

There are many HTML tags that you can use to modify your pages. With practice you should be able to get around the lack of an HTML space tag without too much trouble.

©2014 About.com. All rights reserved.