
CSS - Styling Websites Quiz
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
Spartan Coders
Used 110+ times
FREE Resource
Enhance your content in a minute
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid CSS rule?
h1 {
color: blue;
}
<h1> {
color: blue;
}
h1 {
color="blue";
}
h1 {
color=blue;
}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
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 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
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;
}
5.
MULTIPLE CHOICE QUESTION
45 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
Notes: Not quite! Since the tag has the class “fire” it will be styled according to the second rule, giving it the color red.
red
Notes: Correct! Since the tag has the class “fire” it will be styled according to the second rule, giving it the color red.
black
Notes: Not quite! Since the tag has the class “fire” it will be styled according to the second rule, giving it the color red.
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>
blue
green
black
Similar Resources on Wayground
10 questions
PWPB
Quiz
•
11th Grade
10 questions
Grade 11 Term 4 Practice 2
Quiz
•
11th Grade
10 questions
Word basics
Quiz
•
8th - 12th Grade
10 questions
POST TEST BASIS DATA KELAS 11
Quiz
•
11th Grade
10 questions
MOAC Word 2016 Lesson 3
Quiz
•
8th - 12th Grade
10 questions
Intro to Comp Sci: U2L1
Quiz
•
8th - 12th Grade
10 questions
Grade 8 Quiz
Quiz
•
8th Grade - University
11 questions
WORD
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th 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
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
20 questions
christmas songs
Quiz
•
KG - University
