Q
Which CSS property is used to define the font family?

Answer & Solution

Answer: Option A
Solution:
The correct CSS property to define the font family is font-family. It specifies the font family for the selected element. Example: <span style='font-family: Arial;'>Arial
Related Questions on Average

What is the default font size in CSS?

A). 10px

B). 14px

C). 16px

D). 12px

How can you make text bold using CSS?

A). font-weight: bold;

B). font-style: bold;

C). text-weight: bold;

D). font-bold: true;

Which property is used to specify the size and style of the font at once?

A). font: italic bold 16px Arial;

B). font-style: italic bold 16px Arial;

C). font-family: Arial;

D). font-size: 16px;

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;

How can you set italic text using CSS?

A). font-style: italic;

B). text-style: italic;

C). italic: true;

D). font-italic: true;

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;

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;

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;

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 make text appear in lowercase using CSS?

A). text-transform: lowercase;

B). font-transform: lowercase;

C). transform: lowercase;

D). text-style: lowercase;