शब्दों के बीच रिक्ति सेट करने के लिए, शब्द-रिक्ति गुण का उपयोग करें। संपत्ति के मूल्य इस प्रकार हैं -
word-spacing: normal|length|initial|inherit;
उदाहरण
आइए अब एक उदाहरण देखें -
<!DOCTYPE html>
<html>
<head>
<style>
p.demo1 {
word-spacing: normal;
}
p.demo2 {
word-spacing: 10px;
}
</style>
</head>
<body>
<h1>Demo Heading</h1>
<h2>Heading2</h2>
<p class="demo1">This is demo text.</p>
<h2>Heading2</h2>
<p class="demo2">This is demo text.</p>
</body>
</html> आउटपुट

उदाहरण
आइए अब एक और उदाहरण देखें -
<!DOCTYPE html>
<html>
<head>
<style>
p.demo1 {
word-spacing: 3cm;
}
p.demo2 {
word-spacing: 40px;
}
</style>
</head>
<body>
<h1>Demo Heading</h1>
<h2>Heading2</h2>
<p class="demo1">This is demo text.</p>
<h2>Heading2</h2>
<p class="demo2">This is demo text.</p>
</body>
</html> आउटपुट
