Complete the code to link an external CSS file named "styles.css" in an HTML document.
<link rel=[1] href="styles.css">
The rel attribute specifies the relationship between the HTML document and the linked file. For CSS files, it should be "stylesheet".
Complete the CSS code to import another CSS file named "theme.css" inside a CSS file.
@import url([1]);
The @import rule uses url() with the file path in quotes. So @import url("theme.css"); is correct.
Fix the error in the CSS comment syntax below by filling the blank.
body { /* [1] This is a comment */ background-color: white; }CSS comments start with /* and end with */. Inside the comment, the asterisk * is used to close it properly.
Complete the code to create a CSS rule that applies a red color only to paragraphs inside a section with class "intro".
section[1] p { color: red; }#intro which selects by ID, not class.> which only selects direct children.The selector section.intro p targets all p elements inside a section with class intro. The space means descendant.
Fill all three blanks to create a CSS rule that sets font size to 1.2rem for all list items inside an unordered list with ID "menu".
#[1] [2] li { font-size: [3]; }
> instead of descendant selector.The selector #menu ul li targets all li elements inside ul inside the element with ID menu. The font size is set to 1.2rem.