Computer Science, asked by geetuk321, 1 year ago

which tag is used for non breaking space in html?

Answers

Answered by AJ2018
1

In order to create a non breaking space between 2 words in HTML, we can use :


 


For example if you need 2 or more spaces between two words you can use it as follows:


<p>Hello &nbsp; world!</p>


The above example will show the following output:


Hello world!


That is the number of spaces you want you have to type &nbsp; those number of times.


&nbsp; - gives one space.


&nbsp;&nbsp; - gives two spaces.


Hope this helps.


Similar questions