
Review Lesson 13
Authored by Arif Rahman
Computers
6th - 8th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the :hover selector do in CSS?
It changes styles when the mouse clicks the element.
It changes styles when the mouse hovers over the element.
It changes styles when the element is inactive.
It changes styles when the user focuses on the element using the keyboard.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following :hover selector examples is incorrect?
button:hover { background-color: yellow; }
img:hover { opacity: 0.5; }
card:hover { transform: scale(1.1); }
p hover { text-decoration: underline; }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why doesn’t the :hover selector work in this code?
<p:hover { color: blue; }
<p:hover { color: blue; }
The hover pseudo-class is written incorrectly.
Inline styles override the hover effect.
The syntax for the selector is correct, but it depends on the browser.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the mistake in this hover effect!
.nav:hover (
background-color: #333;
color: #222;)
The pseudo-class :hover is invalid.
Parentheses () should be replaced with curly braces {}
The code is correct as written.
:hover does not work with .nav.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to change the background color of a button when hovered over?
button:hover { background-color: blue; }
button hover { background-color: blue; }
:hover button { background-color: blue; }
button:hover { hover-background: blue; }
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the top property do in the following code?
div
{position: absolute;
top: 50px;}
It positions the element 50px below its parent element.
It moves the element 50px from the top edge of the viewport.
It positions the element 50px from the top of its containing block.
None of the above.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why doesn’t this hover effect apply in the following code?
.container:hover { background-color: green; }
<div class="box">Hover me!</div>
The hover selector only works on inline elements.
The class container is missing in the HTML.
The syntax for the hover effect is incorrect.
The background-color property doesn’t support hover effects.
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?