Which values for font-family property is valid?

  1. Times New Roman, serif

  2. “Times New Roman”, serif

  3. Times New Roman; serif;

  4. &quotTimes New Roman”; “serif”;


Correct Option: B

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) Times New Roman, serif - This option is incorrect because the font names should be enclosed in quotation marks when using the font-family property.

Option B) "Times New Roman", serif - This option is correct because it uses quotation marks to enclose the font names, which is the correct syntax for the font-family property.

Option C) Times New Roman; serif; - This option is incorrect because it uses semicolons instead of commas to separate the font names. Commas should be used to separate multiple font names in the font-family property.

Option D) &quotTimes New Roman"; "serif"; - This option is incorrect because it uses HTML entity codes (&quot) instead of quotation marks to enclose the font names. Quotation marks should be used to enclose the font names in the font-family property.

The correct answer is B) "Times New Roman", serif. This option is correct because it uses the correct syntax and format for the font-family property by enclosing the font names in quotation marks.

Find more quizzes: