HTML/CSS/Exercise: <div>, <style>, CSS background-color
0 XP of 2497 XP
// Task

Set the background-color property for the classes .block-1 and .block-2. The first block's background color should be red, and the second block's background color should be green.

🔒 localhost
Section 3 · Lesson 15Free Preview

Exercise: <div>, <style>, CSS background-color

IDE94 XP1:00
// lesson_notes

Set the background-color property for the classes .block-1 and .block-2. For the first block the background color should be red, and for the second block the background color should be green.