Which of these CSS rules is written correctly?

(1 point)
Responses

p {font: “Times New Roman”;}

p {font: “Times New Roman”;}

p {font-family: “Times New Roman”;}

p {font-family: “Times New Roman”;}

p {font-family=”Times New Roman”;}

p {font-family=”Times New Roman”;}

p {font=”Times New Roman”;}

1 answer

The correctly written CSS rule for setting the font family to "Times New Roman" is:

p {font-family: "Times New Roman";}

This choice correctly uses the font-family property and proper quotation marks. Note that both instances of the correct option are valid. The incorrect forms include the usage of wrong quotation marks, the "=" sign, and the incorrect shorthand font property.