In the CSS rule 'body { color: #008080; }', which part is the property?

Prepare for the uCertify CIW Advanced HTML5 and CSS3 Specialist Exam. Dive into essential topics with flashcards and multiple-choice questions. Enhance your understanding with hints and explanations for each question. Pass your exam confidently!

Multiple Choice

In the CSS rule 'body { color: #008080; }', which part is the property?

In CSS, a rule has a selector and a declaration block. Inside that block, the part before the colon is the property, and the part after the colon is the value. In this example, color is the property name—the thing you’re setting. The value #008080 is the teal color you’re applying to that property. The selector body targets the body element, but it’s the property color that you’re defining the value for. The whole color: #008080; is a single declaration, and the property being set here is color.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy