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.