Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Number of spaces in HTML

Tags:

html

Please tell me how to put more than one space in HTML ?

For one space,we write  , so for 5 spaces, we have to write   five times...

Is there any alternative way? or any tag ?

like image 363
KFC Avatar asked Jan 27 '11 18:01

KFC


People also ask

How do you count spaces in HTML?

To count the number of spaces in a string:Use the length property to get the string's length. Use the String. replaceAll() method to remove all spaces from the string. Subtract the length of the second string from the length of the original string.

How do I make 5 spaces in HTML?

To insert blank spaces in text in HTML, type   for each space to add. For example, to create five blank spaces between two words, type the   entity five times between the words. You do not need to type any spaces between the entities.

What is spacing in HTML?

The word-spacing CSS property sets the length of space between words and between tags.


1 Answers

You can use the

<pre>a    text    with        multiple spaces</pre>

tag :)

like image 54
Alexandre Bourdin Avatar answered Nov 15 '22 13:11

Alexandre Bourdin