R4RIN
MCQS
CSS MCQ Quiz Hub
Css Mcq Set 4
Choose a topic to test your knowledge and improve your CSS skills
1. Find the specificity of this “li.red.leve”.
specificity = 2,0,0,1
specificity = 0,0,1,1
specificity = 0,2,0,1
specificity = 0,0,2,1
2. Find the specificity of this “#x34y”.
specificity = 0,0,0,1
specificity = 0,0,1,0
specificity = 0,1,0,0
specificity = 1,0,0,0
3. Find the specificity of this ” style=”” “.
specificity = 0,0,0,1
specificity = 0,0,1,0
specificity = 0,1,0,0
specificity = 1,0,0,0
4. Which of the following elements are block and inline elements, respectively, that have no particular rendering?
div
span
box-model
both div and span
5. The _____________ property specifies the background color of an element.
background-color
border
color
Display
6. The ___________ property specifies if/how an element is displayed.
background-color
border
color
Display
7. The _____________ property allows us to include the padding and border in an element’s total width and height.
margin
box-sizing
padding
None of the mentioned
8. ______ property sets the coordinates of the clipping shape that exposes or hides the content of absolutely positioned elements
clammper
clip
clear
none of the mentioned
9. _______ property defines the space between cells in a table.
border
border-spacing
border-style
none of the mentioned
10. ______ property defines whether table cell borders are connected or separate.
border-color
border
border-style
none of the mentioned
11. _____ property associates a background image with an element.
image
background-image
float
none of the mentioned
12. _________ property defines whether table cell borders are connected or separate.
pre
border-color
border-collapse
table
13. Which of the following property specifies the order of a flexible item relative to the rest of the flexible items inside the same container?
sort
layout
order
asort
14. Which of the following is an appropriate value for overflow element?
hidden
auto
scroll
all of the mentioned
15. Identify the CSS property that specifies the length of the space used for the tab character.
size
tab-size
tab-space
all of the mentioned
16. Which of the following property specifies the stack order of an element?
order
z-index
p-index
auto
17. Which of the following property allows long words to be able to be broken and wrap onto the next line?
line-wrap
break-word
word-wrap
word-break
18. Which of the following CSS property can be used to provide the flex-direction and flex-wrap properties
flex
flex-flow
flex-wrap
all of the mentioned
19. Which of the following specifies how much the item will grow relative to the rest of the flexible items inside the same container?
flex-scale
flex-size
flex-grow
flex-flow
20. Which of the following property aligns the flexible container’s items when the items do not use all available space on the main-axis?
wrap-content
fix-content
adjust-content
justify-content
21. Choose the CSS property which specifies the placement of a table caption.
table-caption
cell-caption
caption-side
caption-adjust
22. If a particular rule should never be overridden by another rule, the ______ indication should be used.
@important
!important!
!important
important!
23. Which of the following option a rule consists of?
Tag
Selector
Declaration
Both Selector and Declaration
24. Which of the following option a declaration consist of?
Tag
Property
Selector
Class
25. The ______ is the link between the HTML document and the style. It specifies what elements are affected by the declaration.
Tag
Selector
Declaration
Class
26. How a style sheet can be glued to the HTML document?
Import a style sheet using the CSS @import notation.
Apply the basic, document-wide style sheet for the document by using the style element
Link an external style sheet to the document using the link element
all of the mentioned
27. As a general rule, properties in CSS inherit from ____ elements
child to parent
parent to child
grandparents to parents
none of the mentioned
28. CSS3 _____ let you display smooth transitions between two or more specified colors
Float
Align
Gradients
color
29. The _______ property specifies whether or not an element should be resizable by the user.
Outline Offset
Resize
Unit
none of the mentioned
30. The __________ specifies style sheets for a source document according to the conventions of the document language. For instance, in HTML, style sheets may be included in the document or linked externally.
author
user
user-agent
none of the mentioned
31. The __________ may be able to specify style information for a particular document. For example, the user may specify a file that contains a style sheet or the user agent may provide an interface that generates a user style sheet.
author
user
user-agent
none of the mentioned
32. Each property may also have a cascaded value of ___________ which means that, for a given element, the property takes the same specified value as the property for the element’s parent.
!important
delay
inherit
important
33. ________ property specifies the direction in which a marquee should move.
mask
mask-box-image
mask-attachment
mask-origin
34. _____ property specifies whether the mask should scroll or stay fixed when the page is scrolled.
mask-image
mask-box-image
mask-attachment
mask-origin
35. ______ property specifies how the position of the mask should be calculated by setting the origin relative to different locations within an element’s box.
mask-image
mask-box-image
mask-attachment
mask-origin
36. Which of the following property defines the offset from an element’s border and its outline?
outline-radius
opacity
outline-offset
overflow-style
37. Which of the following property defines a color for the face of a scroll bar, including arrow regions and the scroll box?
scrollbar-base-color
scrollbar-arrow-color
scrollbar-darkshadow-color
scrollbar-face-color
38. Which of the following property is used to set the color of the arrow icon within a scroll bar?
scrollbar-base-color
scrollbar-arrow-color
scrollbar-darkshadow-color
scrollbar-face-color
39. Which of the following property defines the text alignment rules on the alignment of the last line of an element?
text-justify
text-fill-color
text-align-last
none of the mentioned
40. Which of the following strings are defined by in css?
single quotes
double quotes
both single quotes and double quotes
none of the mentioned
41. Which of the following defined as alphanumeric names that correspond to some current counter value in a document?
Class
Key
Counters
none of the mentioned
42. Which of the following is the Color Format that is a CSS’s six-digit hexadecimal format as color defined in (X)HTML?
Specification defined named colors
System Color Names
6-Hex Color
3-Hex Color
43. Which of the following is the Color Format that is the CSS3 HSL value with a fourth value to set the alpha channel value for the color to define the opacity of the element?
HSLa Color
HSL Color
RGBa Color
RGB Color
44. Which of the following is the Color Format that is a defined using the keyword rgb, followed by three numbers between 0 and 255, contained in parentheses and separated by commas, with no spaces between them.
HSLa Color
HSL Color
RGBa Color
RGB Color
45. Which of the following property allows the text direction to be overridden to support multiple languages and text flow directions in the same document?
unicode-bidi
visibility
top
vertical-align
46. Which of the following property determines whether or not an element is visible?
display
visibility
transperancy
disappear
47. Which of the following property controls how spaces, tabs, and newline characters are handled in an element?
space
display
widows
white-space
48. Which of the following property defines the minimum number of lines in a paragraph to be left at the top of a page?
white-space
widows
display
width
49. Which of the following property sets the spacing between words?
display
white-space
sr
word-spacing
50. Which of the following measurement defines a measurement in centimeters?
c
cm
centi
centimeter
Submit