CSS - word-spacing
The word-spacing modifies the amount of space placed between words.
normal − The default spacing between words is not changed. In practice, this is equivalent to setting the value to 0.
length − This will add to the spacing between words.the greater the length, the more space will be seen between words.
All the HTML elements.
object.style.wordSpacing = "10px";
Following is the example which demonstrates how to set the space between words.
<html> <head> </head> <body> <p style="word-spacing:5px;"> This text is having space between words. </p> </body> </html>
This will produce following result −