word-spacing property is used to add extra space between adjacent words.
The values of word-spacing are.
| Values | Description |
|---|---|
normal | |
| <length> | |
inherit | inherited from the parent |
word-spacing : -0.2ex word-spacing : 5cm
<html>
<head>
<style>
p {word-spacing:15px;}
h2 {word-spacing:0.6cm}
a {word-spacing:2mm}
span {word-spacing:3pt}
div {word-spacing:+0.2em; color: red}
</style>
</head>
<body>
<a>This is a anchor link</a>
<p>This is a paragraph text</p>
<h2>This is a text inside h2</h2>
<span>This is a paragraph text</span>
<div>This is a text inside h2</div>
</body>
</html>This is a paragraph text
