Add or subtract space between the words of a sentence with CSS


The word-spacing property is used to add or subtract space between the words of a sentence. Possible values are normal or a number specifying space. 

Example

You can try to run the following code to implement word-spacing property. 

<html>
   <head>
   </head>
   <body>
      <p style = "word-spacing:8px;">
         Asia is a continent.
      </p>
   </body>
</html>

Updated on: 31-Jan-2020

282 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements