Search code examples
htmlblank-line

Why six blanks and five blanks result in same effect?


Why six blanks and five blanks result in same effect?

<html>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hello<br/>hello<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hello<br/>hello<br/>
</html>

To open it with firefox.

enter image description here

  1. The are different effect.

2.still problem for

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hello<br/>hello<br/>

There are five blanks here ,why only three blanks displayed on the web page?

enter image description here


Solution

  • The effect is not clearly the same. But I think what @it_is_a_literature meant was why is the "h" in first line starting from the second "l" from the second line. My answer to it is that, not every character has a equal width or dimensions. For eg. the "l" in hello takes less space than "e" in the same word.

    The " " works like a space bar. So there are 5 spaces not 3.