Which of the following property sets the spacing between words?

display
white-space
sr
word-spacing

The correct answer is: D. word-spacing

The word-spacing property sets the space between words in a block of text. It can be used to add or remove space between words, or to create a specific spacing effect.

The display property specifies the type of box that an element generates. It can be used to create inline elements, block elements, or inline-block elements.

The white-space property controls how white space is handled in a block of text. It can be used to prevent line breaks, to wrap text around images, or to add space between words.

The sr property is used to provide alternative text for screen readers. It is not used to set the spacing between words.

Exit mobile version