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

Code Example 1

<!-- vertical space -->
&nbsp;
&ensp;
&emsp;

<!--horizontal space -->
<br/>

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

<button type="submit" value="submit" name="submit" style="margin-bottom: 20px;">The style makes a space
</button>

Code Example 5

<br/>

Code Example 6

Html whitespace

Learn ReactJs, React Native from akashmittal.com