
Modern HTML and CSS from the Beginning (Including Sass) - Aside: Visibility, Order & Negative Margin
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens to an element when the CSS property 'display: none' is applied?
It becomes invisible but still occupies space.
It is removed from the document flow and does not occupy space.
It becomes semi-transparent.
It is hidden but can still be interacted with.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does the 'visibility: hidden' property differ from 'display: none'?
It only affects the element's background color.
It makes the element invisible and removes it from the document flow.
It makes the element invisible but it still occupies space.
It changes the element's opacity to 50%.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In CSS, which has higher specificity: a class selector or an element selector?
Both have the same specificity
Class selector
It depends on the order in the stylesheet
Element selector
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the '!important' flag in CSS?
To override other styles regardless of specificity
To add a comment in the CSS
To make the text bold
To increase the font size
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when both a class and an element have conflicting styles and the class is defined after the element?
The element's style takes precedence.
The styles are merged.
The class's style takes precedence.
Both styles are ignored.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the effect of applying a negative margin in CSS?
It changes the element's color.
It makes the element invisible.
It moves the element in the opposite direction of the margin.
It increases the element's size.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can negative values be used with padding in CSS?
No, padding cannot have negative values.
Only in certain browsers.
Yes, but it requires a special prefix.
Yes, it works the same as with margins.
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?