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 ?
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.
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.
The word-spacing CSS property sets the length of space between words and between tags.
You can use the
<pre>a text with multiple spaces</pre>
tag :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With