Home
MCQS
CSS MCQ Quiz Hub
Css Mcq Set 9
Choose a topic to test your knowledge and improve your CSS skills
1. column-rule-style property defines the width of a rule between columns in a multicolumn text flow?
TRUE
FALSE
Can be true or false
Can not say
2. How many types of position values are there in CSS?
2
3
4
5
3. The default for any page element is?
Fixed
relative
absolute
Static
4. Positioning attributes top, bottom, left and right are used to determine the exact location
TRUE
FALSE
Can be true or false
Can not say
5. Reverse CSS Property specifies the top offset of a positioned element.
TRUE
FALSE
Can be true or false
Can not say
6. In Absolute position, If there is no parent element, these elements are set to be _______ to the page.
absolute
static
fixed
relative
7. Setting the position to relative makes the element appear on bottom of any other static element in its area.
TRUE
FALSE
Can be true or false
Can not say
8. How many different types of selectors in CSS?
3
4
5
6
9. ______ selects the HTML element by name.
element selector
Class Selector
Universal Selector
Group Selector
10. An id is not always unique within the page so it is chosen to select a single, unique element.
TRUE
FALSE
Can be true or false
Can not say
11. Id written with the ?
.
$
@
#
12. Class name can be started with a number?
Yes
No
Depends on class
Depends on element
13. The universal selector is used as a ?
Wildcard Character
Page Character
Commas character
None of the above
14. ______ are used to separate each selector in grouping.
#
.
,
:
15. A similar rule called the ____________ is specified using the plus sign (+) and is used to select elements that would be siblings of each other.
class selectors
adjacent-sibling selector
attribute selectors
None of the above
16. Which part of box model clears an area around the content?
Padding
Border
Margin
None of the above
17. Which part of box model is transparent?
Padding
Margin
Border
both a and b
18. When you set the width and height properties of an element with CSS, you just set the width and height of the?
Padding
Margin
content
borders.
19. The content of the box, where text and images appear.
TRUE
FALSE
Can be true or false
Can not say
20. border-bottom-style property defines the style for the bottom border of an element.
TRUE
FALSE
Can be true or false
Can not say
21. The box model allows us to add a border around elements, and to define space between elements.
TRUE
FALSE
Can be true or false
Can not say
Submit