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

Code Example 1

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

&nbsp;Hello World

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

Learn ReactJs, React Native from akashmittal.com