단어 사이의 간격을 설정하려면 word-spacing 속성을 사용하십시오. 속성 값은 다음과 같습니다 -
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> 출력
