Javascript AJAX jQuery HTML PHP Example MORE

Non-breaking Space HTML

As it is create space without break a line so it is called as non-breaking space or  

In HTML non-breaking space is used to create space without breaking a line.

Sometimes we need some more space between two words. If we want more than one space we have to use non-breaking space.

  • 10 km
  • 10 pm
  • 10 am

If you write 10 spaces in your text, the browser will remove 9 of them. To add real spaces to your text, you can use the   character entity.


<!DOCTYPE html>
<p>10   AM</p>
<p>7   PM</p>
<p>50   Km</p>


Run it yourself