
Advance HTML &CSS Quiz (special selectors, DRY),
Authored by Gulbahar Durdyyeva
Information Technology (IT)
9th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What does the CSS selector div > p do?
Selects all <p> elements inside <div>, no matter how deep
Selects only <p> elements that are direct children of <div
Selects only the first <p> element after <div>
Selects only <p> elements inside <div> with a specific class
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which CSS selector would apply a style to all <p> elements inside a <div>, no matter how deep?
div > p
div p
div + p
p > div
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the difference between div > p and div p?
div > p selects all <p> elements inside <div>, while div p selects only direct children
div > p and div p do the same thing
div > p applies styles to <p> elements before <div>, while div p applies styles to <p> elements after <div>
div > p selects direct children, while div p selects all <p> elements inside <div>
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What does h1 + p do?
Selects all <p> elements that come after <h1>
Selects the first <h1> on the page and applies styles to all <p> elements
Selects only the <p> element that comes immediately after <h1>
Selects <p> elements that are inside <h1>
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which CSS selector would apply a style to all <p> elements that come after an <h1>, even if other elements are between them?
h1 ~ p
h1 + p
h1 > p
p ~ h1
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which selector should you use if you want to style multiple elements the same way at once?
h1 p
h1 > p
h1, p
h1 + p
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
If you want to apply styles to all elements inside <div> but not the <div> itself, which selector should you use?
div > *
div *
* div
div + *
Access all questions and much more by creating a free account
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
17 questions
Экзамен C++ ОП
Quiz
•
9th - 12th Grade
17 questions
Hardware-sofware 1ºb
Quiz
•
9th - 12th Grade
10 questions
Basic Logic & Programming pt.2
Quiz
•
6th Grade - University
10 questions
Internet dan Intranet
Quiz
•
9th Grade - University
10 questions
Informatika Kelas 9 Materi Algotirma dan Pemrograman
Quiz
•
9th Grade
10 questions
Preguntas previas hojas de cálculo
Quiz
•
9th Grade
12 questions
JavaFX
Quiz
•
9th - 12th Grade
10 questions
ITes Class-IX LibreOffice Impress Quiz
Quiz
•
9th Grade - University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Exponent Properties
Quiz
•
9th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade