CSS Properties: How to specify the space between words in paragraph element
Solution:
HTML Code:
Explanation:
- This HTML document demonstrates how to use the word-spacing property in CSS to specify the space between words in a paragraph element.
- The CSS rule sets the space between words in all paragraph elements to 20 pixels.
- The repeated text within the paragraph demonstrates the effect of the specified word spacing.
Live Demo:
See the solution in the browser
Supported browser
![]() |
![]() |
![]() |
![]() |
![]() |
Yes | Yes | Yes | Yes | Yes |
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics