What is &nbsp in html?


    
        <p> Hello&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;World</p>
    
  • Ren­dres “Hello     World”.
  • As Non-breaking spaces are not col­lapsed when ren­dered by the browser on a webpage.
  • You’ll have to change &NBSP to &nbsp.

    
        <p> Hello     World</p>
    
  • Ren­ders “Hello World” on a webpage.

You may also like...