Check out example codes for "whitespace html". It will help you in understanding the concepts better.

Code Example 1

 

Code Example 2

<!--   Add leading white space in front of text  -->

&nbsp;Hello World

<!--    Output:   ' Hello World'    -->

Code Example 3

&nbsp;  <!-- 1 space -->
&ensp;	<!-- tab; 2 space -->
&emsp;	<!-- tab; 4 space -->

Code Example 4

&nbsp

Code Example 5

<p>space please &nbsp; <!-- 1 SPACE Keep adding it for more --></p>

Code Example 6

<br/>

Learn ReactJs, React Native from akashmittal.com