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

Code Example 1

 

Code Example 2

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

Code Example 3

non-breaking space	= &nbsp;
<	less than =	&lt;
>	greater than =	&gt;
&	ampersand =	&amp;

Code Example 4

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

&nbsp;Hello World

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

Code Example 5

<br/>

Code Example 6

Html whitespace

Learn ReactJs, React Native from akashmittal.com