CSS Selectors Quiz
Write a CSS id selector for the following HTML code. <div id="content" class="blue"> __________
#content
What type of selector is used to link a CSS rule to only those HTML elements that have a particular class?
class
Write a CSS element selector for the following HTML code. <div id="content" class="blue"> ______________
div
What type of selector is used to link a CSS rule to a specific HTML element?
element
What type of selector is used to link a CSS rule to only those HTML elements that have a particular id?
id
Write a CSS class selector for the following HTML code. <div id="content" class="blue"> _____________
.blue
A CSS descendant selector allows you to select an HTML element that is nested inside another HTML element. Which CSS selector would correctly select the most important heading level in the main section of the webpage? (See code below.) <header> <h1>Company Name</h1> </header> <main> <h1>Welcome</h1> <p>Welcome to my awesome website!</p> </main>
#main h1
In CSS, you cannot select more than one HTML elements at a time.
False