give 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: add space in html

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

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

Example 4: leading spaces html

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

&nbsp;Hello World

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

Example 5: spaces html

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

Tags:

Html Example