1. Computing

Discuss in my forum

Is there an HTML space tag?

By

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.

Answer:

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.

  1. About.com
  2. Computing
  3. Web Design / HTML
  4. HTML and XHTML
  5. Beginning HTML Tutorials
  6. HTML Space Tag - Is There an HTML Space Tag? - Putting Spaces in HTML

©2014 About.com. All rights reserved.