Step 1:Create index.html file and implement as below code in it.
<p class="p1">This is heading 2</p> <p class="p2">This is heading 3</p>
Step 2:Implement CSS code as below to Word Spacing.
<style> body { background: #2e9ad0; } .p1 { word-spacing: 10px; } .p2 { word-spacing: -5px; } </style>
Complete Code For Word Spacing Using CSS.
<!DOCTYPE html> <html> <head> <title>How To Do Word Spacing Using Cascading Style Sheets</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"/> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <style> body { background: #2e9ad0; } .p1 { word-spacing: 10px; } .p2 { word-spacing: -5px; } </style> <body> <br/><br/> <div class="container"> <br><br><br> <div class="text-center"> <h1 id="color" style="color: white;">Word Spacing Using CSS</h1> </div> <br> <div class="well"> <p class="p1">This is heading 2</p> <p class="p2">This is heading 3</p> </div> <br> </div> </body> </html>