Answers for "how to add space in text in html"

14

leading spaces html

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

&nbsp;Hello World

<!--    Output:   ' Hello World'    -->
Posted by: Guest on June-11-2020
21

add space in html

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

<!--horizontal space -->
<br/>
Posted by: Guest on October-29-2020
1

put space between text html

in css:
p {
  white-space: pre;
}
Posted by: Guest on May-19-2021
0

how to add spaces between text in html

p {
  white-space: pre;
}
Posted by: Guest on December-08-2020

Browse Popular Code Answers by Language