Possible ways:
<pre> ... </pre>
or
style="white-space:pre"
Anything else?
The character entity used to denote a non-breaking space which is a fixed space. This may be perceived as twice the space of a normal space. It is used to create a space in a line that cannot be broken by word wrap.
Creating extra spaces before or after text To create extra spaces before, after, or in-between your text, use the (non-breaking space) extended HTML character. For example, with the phrasing "extra space" using a double space, we have the following code in our HTML.
The tab-size property specifies the width of a tab character. In HTML, the tab character is usually displayed as a single space-character, except for some elements, like <textarea> and <pre>, and the result of the tab-size property will only be visible for those elements.
To insert tab space
between two words/sentences I usually use
 
and  
In cases wherein the width/height of the space is beyond
I usually use:
For horizontal spacer:
<span style="display:inline-block; width: YOURWIDTH;"></span>
For vertical spacer:
<span style="display:block; height: YOURHEIGHT;"></span>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With