What is wrong with the following code? body{ color: #000000; background-color:#FFFFFF font-family: Times, Arial, Cursive; }

Enhance your coding skills with our Web Development 201 Quiz. Practice with multiple-choice questions and find detailed explanations for each question. Ace your web development exam!

The issue with the provided code lies in the syntax for the CSS properties. In CSS, each property-value pair within a rule must be separated by a semicolon. In the given code, the background-color property is missing the required semicolon before the font-family property. This omission prevents the CSS from being parsed correctly, which can lead to the rule not applying as expected or causing a cascade of errors in subsequent styles.

The inclusion of a semicolon after the background-color property would fix the syntax error, ensuring all properties are properly recognized by the browser.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy