Which of the following is a valid CSS rule?
Web Design: Pop Quiz

Quiz
•
Computers
•
10th - 12th Grade
•
Hard

Leng Kai Ooi
Used 35+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
h1 {
color: blue;
}
<h1> {
color: blue;
}
h1 {
color="blue";
}
h1 {
color=blue;
}
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
CSS rules have a selector that defines which HTML elements the rule applies to.
We’ve learned about the following CSS Selectors:
--> Select by tag name
--> Select by class name
--> Select by id name
Which of the following ranks the selectors from highest precedence to lowest precedence?
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 id name, select by class name, select by tag name
Select by class name, select by id name, select by tag name
3.
MULTIPLE CHOICE QUESTION
45 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 create styles with CSS that are not possible using style= on an HTML tag
I only
II only
I and II
Neither I nor II
4.
MULTIPLE CHOICE QUESTION
45 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;
}
<img> {
height: 200px;
}
img {
height: 200px;
}
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
red
green
blue
black
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
red
blue
green
black
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is the proper format for an HTML tag?
>h1<Content Affected by Tag >/h1<
<h1>Content Affected by Tag<h1>
<h1 Content Affected by Tag />
<h1>Content Affected by Tag</h1>
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
HTML - Syntax, P, H and img Elements

Quiz
•
12th Grade
7 questions
CSS Rules Quiz-unit 4 CodeHS

Quiz
•
7th Grade - University
15 questions
HTML Quiz

Quiz
•
7th - 12th Grade
12 questions
HTML and CSS

Quiz
•
9th - 10th Grade
15 questions
Web Design

Quiz
•
10th - 12th Grade
14 questions
HTML Headings and Text

Quiz
•
9th - 12th Grade
10 questions
HTML/CSS Quiz

Quiz
•
10th Grade - University
15 questions
cse unit 2 html

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade