How to provide space in html code example

Example 1: html space

<!-- Create space in HTMl -->
&nbsp;

<!-- Example: -->
<p> Hello &nbsp; World! </p>

Example 2: add spaces html

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

Example 3: leading spaces html

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

&nbsp;Hello World

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

Example 4: space html code

<!-- Create space in HTMl -->
&nbsp;

<!-- Example: -->
<p> Hello &nbsp; World! </p>

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

Tags:

Html Example