Which of the following property is used to set the color of a text?

color
direction
letter-spacing
word-spacing

The correct answer is A. color.

The color property is used to set the color of text. It can be used to set the color of all text on a page, or it can be used to target specific elements of text. The color property takes a color value, which can be a hex code, a color name, or an RGB value.

The direction property is used to set the direction of text. It can be used to set the direction of all text on a page, or it can be used to target specific elements of text. The direction property can take the values ltr (left to right) or rtl (right to left).

The letter-spacing property is used to add space between letters. It can be used to add space between all letters on a page, or it can be used to target specific elements of text. The letter-spacing property takes a length value, which can be a positive or negative number.

The word-spacing property is used to add space between words. It can be used to add space between all words on a page, or it can be used to target specific elements of text. The word-spacing property takes a length value, which can be a positive or negative number.

Exit mobile version