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

Answer & Solution

Answer: Option A
Solution:
The font-weight property is used to specify the weight of the font, such as normal, bold, bolder, lighter, etc. Example: font-weight: bold;
Related Questions on Average

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.

Which property is used to specify the style of the text, such as normal, italic, or oblique?

A). font-style: italic;

B). text-style: italic;

C). style: italic;

D). font-type: italic;

How can you make text bold using CSS?

A). font-weight: bold;

B). font-style: bold;

C). text-weight: bold;

D). font-bold: 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;

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

A). text-transform: capitalize;

B). font-transform: capitalize;

C). transform: capitalize;

D). text-style: capitalize;

How can you make text appear smaller than the rest of the text on a page?

A). font-size: smaller;

B). font-size: 10px;

C). font-type: smaller;

D). font-size: 14px;

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

A). color: #000000;

B). text-color: red;

C). font-color: blue;

D). text-style: color;

What is the default font size in CSS?

A). 10px

B). 14px

C). 16px

D). 12px

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;

What does the font-weight property do in CSS?

A). It sets the font size.

B). It sets the font weight.

C). It sets the font style.

D). It sets the font family.