CSS MCQ Questions
CSS MCQ Questions
CSS MCQ Questions
com
CSS MCQ Questions with Answers
Take CSS MCQ Test & Online Quiz to Test Your Knowledge
We have listed below the best CSS MCQ Questions that checks your basic knowledge of CSS Framework.
This CSS MCQ Test contains 30 best CSS multiple-choice questions. You have to select the right answer to
every question. You can also download the CSS MCQ PDF from the link given among questions.
Q3. Which Event Will Be Used When A Connection To The Server Is Opened.
A. Onmessage
B. Onopen
C. Onerror
D. None Of The Above
A. Body:color=black
B. {body;color:black}
C. {body:color=black(body}
D. Body {color: Black}
A. Z-index
B. Position
C. Overflow
D. Clip
A. Header
B. Footer
C. Display
D. None Of The Above
A. Background - Color
B. Background - Image
C. Background - Attachment
D. None of These
Q8. If We Want Define Style For An Unique Element, Then Which Css Selector Will We
Use ?
A. Id
B. Text
C. Class
D. Name
Q9. Which Of The Following Properties Will We Use To Display Border Around A Cell
Without Any Content ?
A. Noncontent-cell
B. Blank-cell
C. Empty-cell
D. Void-cell
Q10. What Should Be The Table Width, So That The Width Of A Table Adjust To The
Current Width Of The Browser Window?
A. 640 Pixels
B. 100.00%
C. Full-screen
D. 1024 Px
Q11. When We Write <img Src="img.png">, What "img.png" Inside Double Quote
Implies?
A. Value
B. Element
C. Attribute
D. Operator
A. / A Comment /
B. // A Comment //
C. /* A Comment */
D.
Q13. Which CSS Property Is Used To Control The Text Size Of An Element ?
A. Font-style
B. Font-size
C. Text-size
D. Text-style
Q15. Which Of The Following Selector Selects All Elements Of E That Have The
Attribute Attr That End With The Given Value?
A. E[attr^=value]
B. E[attr$=value]
C. E[attr*=value]
D. None Of The Mentioned
Q16. Which Of The Following Selector Selects The Elements That Are Checked?
A. E ~ F
B. ::after
C. :checked
D. None Of The Mentioned
Q17. Which Of The Following Selector Selects An Element That Has No Children?
A. :nochild
B. :empty
C. :inheritance
D. :no-child
Q18. Which Of The Following Selector Selects An Element If It's The Only Child Of Its
Parent?
A. :nth-oftype(n)
B. :only-child
C. :root
D. None Of The Mentioned
Q20. If a particular rule should never be overridden by another rule, the ____________
indication should be used.
A. !important!
B. @important
C. !important
D. important!
Q21. What should be the table width, so that the width of a table adjust to the current
width of the browser window?
A. 50%
B. 100%
C. 200%
D. Full Screen
Q22. The following are all advantages of using CSS3, except __________
A. Consistency
B. Bandwidth
C. Accessibility
D. Rules, styles, targeting specific text
A. CSS 1
B. CSS 2
C. CSS 3
D. CSS 4
Q27. Which of the following attributes is used to specify elements to bind style rules to?
A. Id
B. Class
C. Tags
D. All of the Above
Q28. Which of the following function defines a linear gradient as a CSS image?
A. image()
B. gradient()
C. grayscale()
D. linear-gradient()
Q29. how will you make all paragraph elements red in color?
A. p {color: red;}
B. p.all {color: red;}
C. all.p {color: #998877;}
D. p.all {color: #990000;}
A. size
B. text
C. font-size
D. text-size