
CSS - HTML Styling Quiz
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Jennifer Hunt
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we use CSS?
HTML wasn’t intended to be able to style web pages, CSS allows us to add style
Separate the content of a web page from the design of a web page
Easily modify the look and feel of a web site even at a large scale
All of these are correct
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid CSS rule?
h1 { color: blue; }
style="color:blue;"
css="color:blue;"
h1 {
color {
blue;
}
}
3.
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;
}
img {
height: 200px;
}
<img> {
height: 200px;
}
Answer explanation
For this, we use a CSS rule to select all img tags and set their height.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following code snippets will select all HTML elements with the class “alert” and set their color to be red?
alert {
color: red;
}
.alert {
color: red;
}
#alert {
color: red;
}
class="alert" {
color: red;
}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following CSS rules will select the HTML element with the id logo and set the font size for that element to 60 pixels?
logo {
font-size: 60px;
}
.logo {
font-size: 60px;
}
#logo {
font-size: 60px;
}
id="logo" {
font-size: 60px;
}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the function of the Cascade in CSS?
The Cascade is a set of guidelines to make your site look beautiful.
The Cascade helps you write styling for your websites quickly by providing easy templates to use.
The Cascade determines which CSS rules will be applied when multiple rules for an item are contradictory.
The Cascade will make sure there are no typos in your CSS rules.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False: In the case that two conflicting rules have the same order and specificity, the rule that is written first will be applied.
TRUE
FALSE
Answer explanation
In the case that two conflicting rules have the same order and specificity, the rule that is written later will be applied.
In the case that two conflicting rules have the same order and specificity, the rule that is written later will be applied.
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Word basics
Quiz
•
8th - 12th Grade
15 questions
Systems Architecture
Quiz
•
KG - 9th Grade
10 questions
Microsoft Publisher
Quiz
•
7th - 10th Grade
12 questions
HTML
Quiz
•
9th - 12th Grade
17 questions
Basic Docs
Quiz
•
8th - 9th Grade
15 questions
Edición de Videos
Quiz
•
7th - 9th Grade
15 questions
ôn tập chỉnh ảnh và làm phim
Quiz
•
11th Grade
16 questions
Kod Arahan
Quiz
•
9th - 11th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
15 questions
Internet Vocabulary Notebook Check #2 - CTEA(2024)
Quiz
•
12th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
39 questions
UNIT 7 and UNIT 8 — Multiple Choice Question Bank (Extracted)
Quiz
•
9th Grade
50 questions
Money Matters Fall 2025 Final Exam — Worksheet Questions
Quiz
•
12th Grade
47 questions
CSF Final Exam Practice
Quiz
•
9th - 12th Grade
