HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <h1>CSS word-spacing Property</h1> <p>This is paragraph.</p> <button onclick="myFunction()">Click Me</button> <script> var x = document.getElementsByTagName("p")[0]; function myFunction(){ x.style.wordSpacing = "20px"; } </script> <p><strong>Note</strong>: Click on the button the set the word-spacing to '20px'.</p> </body> </html>
OUTPUT
×

Save as Private