Q
Which property is used to specify the color of the text?

Answer & Solution

Answer: Option A
Solution:
The color property in CSS is used to specify the color of the text, e.g., color: #000000; for black. Example: color: #000000;
Related Questions on Average

Which property is used to set the size of the font?

A). font-size: 14px;

B). text-size: 16px;

C). size: 12px;

D). font-type: 18px;

Which CSS property is used to specify whether the text should be in uppercase or lowercase?

A). text-transform: uppercase;

B). font-transform: uppercase;

C). case: uppercase;

D). transform: uppercase;

Which CSS property is used to specify the weight of the font?

A). font-weight: bold;

B). font-style: italic;

C). font-size: 12px;

D). text-weight: normal;

How can you make text appear in lowercase using CSS?

A). text-transform: lowercase;

B). font-transform: lowercase;

C). transform: lowercase;

D). text-style: lowercase;

What is the default font size in CSS?

A). 10px

B). 14px

C). 16px

D). 12px

What does the font-size property do in CSS?

A). It sets the font weight.

B). It sets the font size.

C). It sets the font style.

D). It sets the font family.

How can you make text appear in title case using CSS?

A). text-transform: capitalize;

B). font-transform: capitalize;

C). transform: capitalize;

D). text-style: title-case;

How can you set italic text using CSS?

A). font-style: italic;

B). text-style: italic;

C). italic: true;

D). font-italic: true;

How can you set text to have no decoration using CSS?

A). text-decoration: none;

B). decoration: none;

C). text-style: none;

D). font-decoration: none;

How can you make text appear in uppercase using CSS?

A). text-transform: uppercase;

B). font-transform: uppercase;

C). transform: uppercase;

D). text-style: uppercase;