Complete the code to select an element with the ID "header".
#[1] { color: blue; }
The # symbol is used to select an element by its ID. So #header selects the element with ID "header".
Complete the code to change the background color of the element with ID "main-content".
#[1] { background-color: lightgray; }
The ID selector must match the exact ID of the element. Here, the ID is "main-content", so #main-content selects it.
Fix the error in the CSS selector to style the element with ID "footer".
[1]footer { font-size: 1.2rem; }
The # symbol is required to select an element by its ID. Using #footer correctly targets the element with ID "footer".
Fill both blanks to select the element with ID "nav" and set its text color to red.
[1][2] { color: red; }
The # symbol selects by ID, and the ID name is "nav". So #nav selects the element with that ID.
Fill all three blanks to select the element with ID "sidebar", set its width to 250px, and add a border.
[1][2] { width: [3]; border: 1px solid black; }
Use #sidebar to select the element by ID. Then set the width to 250px to control its size.