Which of the following ranks the CSS selectors from highest precedence to lowest precedence?
CodeHS Unit 2 Retake Review

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Class name
Tag name
ID name
Element name
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False: You can create static styles with inline style= (on HTML tags) that are not possible using CSS
True
False
Only in certain browsers
Only for specific HTML elements
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the code be to select all <img> tags on a page and give them a height of 200 pixels?
img { height: 200px; }
img { height: 150px; }
img { height: auto; }
img { height: 100%; }
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose you have the following CSS rules:
p {
color: green;
}
.fire {
color: red;
}
#title {
color: blue;
}
What font color will the following HTML element have after being styled by the given CSS:
<p class="fire" id="title">Hello World!</p>
Green
Red
Blue
Yellow
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the format for a CSS rule?
h1 {
color:blue;
}
h1 {
background-color:red;
}
h1 {
font-size:16px;
}
h1 {
margin:10px;
}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose you have the following CSS rules:
p {
color: green;
}
.fire {
color: red;
}
#title {
color: blue;
}
What font color will the following HTML element have after being styled by the given CSS:
<h1 class="fire">Welcome!</h1>
Green
Red
Blue
Yellow
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False: Styling with CSS is more scalable than using style= on each HTML tag that you want to style
True
False
CSS is less scalable
Both are equally scalable
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose you have the following CSS rules:
p {
color: green;
}
.fire {
color: red;
}
#title {
color: blue;
}
What font color will the following HTML element have after being styled by the given CSS:
<p class="title">My First Paragraph</p>
Green
Red
Blue
Yellow
Similar Resources on Quizizz
13 questions
CSS Selector Practice

Quiz
•
10th - 12th Grade
11 questions
10-сынып HTML + CSS + JS

Quiz
•
12th Grade
10 questions
Website Design

Quiz
•
KG - University
10 questions
HTML Tags

Quiz
•
9th Grade
12 questions
HTML und CSS - Wissenstest

Quiz
•
9th - 10th Grade
12 questions
WEBSITE AUTHORING CHECKPOINT

Quiz
•
8th - 9th Grade
10 questions
Web Design: Pop Quiz

Quiz
•
10th - 12th Grade
10 questions
HTML & CSS

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University