Which of the following is a valid CSS rule?
CSS Rules Quiz-unit 4 CodeHS

Quiz
•
Computers
•
7th Grade
•
Easy
Aubrey Bushnell
Used 5+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
h1 {
color: blue;
}
<h1> {
color: blue;
}
h1 {
color="blue";
}
h1 {
color=blue;
}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
CSS rules have a selector that defines which HTML elements the rule applies to. Which of the following ranks the selectors from highest precedence to lowest precedence?(most important to least important)
Select by tag name, select by class name, select by id name
Select by id name, select by tag name, select by class name
Select by class name, select by id name, select by tag name
Select by id name, select by class name, select by tag name
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements are true about styling your web pages with CSS?
I. Styling with CSS is more scalable than using style= on each HTML tag that you want to style
II. You can change HTML tag style attributes with CSS files that are also possible using inline style= on an HTML tag
I only
II only
I and II
Neither I nor II
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following code snippets will select all <img> tags on a page and give them a height of 200 pixels?
<img style="height:200px;">
tag="img" { height: 200px; }
{ height: 200px; }
img {
height: 200px;
}
5.
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>
Red
Green
Blue
Black
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:
<p class="title">My First Paragraph</p>
red
blue
green
black
7.
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>
red
blue
green
black
Similar Resources on Quizizz
10 questions
HTML and CSS

Quiz
•
7th Grade
12 questions
HTML Basics

Quiz
•
University
10 questions
HTML

Quiz
•
8th Grade
10 questions
SDA Review Questions 41- 50

Quiz
•
7th Grade
12 questions
HTML & CSS

Quiz
•
10th - 12th Grade
7 questions
Introduction to HTML/CSS Quiz 3: Basic CSS

Quiz
•
6th - 12th Grade
10 questions
CSS Grade 11 NIS Aktobe

Quiz
•
11th Grade
10 questions
SDA Review Questions 51 - 60

Quiz
•
7th 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
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
11 questions
Decimal/fraction conversions quick check

Quiz
•
5th - 7th Grade
10 questions
Identifying equations

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
20 questions
Math Review

Quiz
•
7th Grade
14 questions
Subtracting Integers

Lesson
•
6th - 8th Grade
15 questions
Exponent Properties

Quiz
•
7th - 9th Grade