Copyright © tutorialspoint.com

CSS - word-spacing

previous next


Description:

The word-spacing modifies the amount of space placed between words.

Possible Values:

Applies to:

All the HTML elements.

DOM Syntax:

object.style.wordSpacing="10px";

Example:

Following is the example which demonstrates how to set the space between words.

<p style="word-spacing:5px;">
This text is having space between words.
</p>

This will produce following result:

This text is having space between words.

To Become more comfortable - Do Online Practice


previous next

Copyright © tutorialspoint.com