In this example, we will see how to add space between the words using CSS. We can use the word-spacing
property to specify the spacing between the words.
HTML
<span class="example">mind the gap</span>
CSS
.example {
word-spacing: 20px;
}
Output
Here, we used word-spacing: 20px
to add a space of 20px between the words.
In this example, we learned how to add space between the words using CSS. We used the word-spacing
property to specify the spacing between the words.