How to insert spaces/tabs in text using HTML/CSS

Yeseanul picture Yeseanul · Mar 20, 2012 · Viewed 1.4M times · Source

Possible ways:

<pre> ... </pre>

or

style="white-space:pre"

Anything else?

Answer

Giri picture Giri · Feb 4, 2015

To insert tab space between two words/sentences I usually use

&emsp; and &ensp;