CSS Multiple Choice Questions(MCQs)& Answers

Questions
41 Which of the following property aligns the flexible container’s items when the items do not use all available space on the main-axis?
A wrap-content
B fix-content
C adjust-content
D justify-content

Answer: justify-content
42 Choose the CSS property which specifies the placement of a table caption.
A table-caption
B cell-caption
C caption-side
D caption-adjust

Answer: caption-side
43 If a particular rule should never be overridden by another rule, the ____________ indication should be used.
A @important
B !important!
C !important
D important!

Answer:!important
44 Which of the following option a rule consists of?
A Tag
B Selector
C Declaration
D Both Selector and Declaration

Answer: Both Selector and Declaration
45 Which of the following option a declaration consist of?
A Tag
B Property
C Selector
D Class

Answer: Property
46 The ______________ is the link between the HTML document and the style. It specifies what elements are affected by the declaration.
A Tag
B Selector
C Declaration
D Class

Answer:Selector
47 How a style sheet can be glued to the HTML document?
A Import a style sheet using the CSS @import notation.
B Apply the basic, document-wide style sheet for the document by using the style element
C Link an external style sheet to the document using the link element
D All of the mentioned

Answer:All of the mentioned
48 As a general rule, properties in CSS inherit from ___________ elements
A child to parent
B parent to child
C grandparents to parents
D none of the mentioned

Answer: parent to child
49 CSS3 ___________ let you display smooth transitions between two or more specified colors
A Float
B Align
C Gradients
D Color

Answer:Align
50 The ___________________ property specifies whether or not an element should be resizable by the user.
A Outline Offset
B Resize
C Unit
D None of the mentioned

Answer: Resize
51 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.
A author
B user
C user-agent
D none of the mentioned

Answer:author
52 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.
A author
B user
C user-agent
D none of the mentioned

Answer: user
53 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.
A !important
B delay
C inherit
D important

Answer: inherit
54 _____________ property specifies the direction in which a marquee should move.
A marquee-style
B marquee-play-count
C marquee-direction
D none of the mentioned

Answer: marquee-direction
55 ___________ property defines a mask to be used as a box’s overlay in order to clip the box to a complex shape.
A mask
B mask-box-image
C mask-attachment
D mask-origin

Answer: mask
56 _____________ property specifies whether the mask should scroll or stay fixed when the page is scrolled.
A mask-image
B mask-box-image
C mask-attachment
D mask-origin

Answer:mask-attachment
57 ___________ property specifies how the position of the mask should be calculated by setting the origin relative to different locations within an element’s box.
A mask-image
B mask-box-image
C mask-attachment
D mask-origin

Answer: mask-origin
58 Which of the following property defines the offset from an element’s border and its outline?
A outline-radius
B opacity
C outline-offset
D overflow-style

Answer: outline-offset
59 Which of the following property defines a color for the face of a scroll bar, including arrow regions and the scroll box?
A scrollbar-base-color
B scrollbar-arrow-color
C scrollbar-darkshadow-color
D scrollbar-face-color

Answer: scrollbar-face-color
60 Which of the following property is used to give a 3-D sense of depth to an element?
A overflow-style
B opacity
C overflow-x
D perspective

Answer: perspective