HTML - Add consecutive empty spaces

In HTML, consecutive spaces are ignored by browsers, as well as carriage returns and tabs.

To insert multiple consecutive spaces, it is necessary to use a specific HTML entity called a non-breaking space, the HTML code is as follows:

For tabs or advanced formatting, you can use the CSS: the white-space property.
  • This property allows you to define the spaces that will be displayed or not.
  • The "pre" value shows all spaces.

Learn more [W3C specification
Published by jak58. Latest update on April 30, 2013 at 10:07 AM by jak58.
This document, titled "HTML - Add consecutive empty spaces," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (
HTML/CSS - Several links on a single image
Display keystrokes in an HTML document