Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

CSS MCQ Questions

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

By OnlineInterviewQuestions.

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.

Also, Read Best CSS interview questions.

Q1. What Is CSS Stand For

A. Cascading Style Sheets


B. Cascade Style Sheet
C. Color Style Sheets
D. Cascade Sheets Style

Q2. Pseudo-classes In CSS

A. Match A Specified Element


B. Select The Active Links
C. Are Used To Select All The Visited Links
D. Are Used To Define A Special State Of An Element

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

Q4. Which Is The Correct CSS Syntax?

A. Body:color=black
B. {body;color:black}
C. {body:color=black(body}
D. Body {color: Black}

Q5. Which CSS Property Sets The Stack Order Of An Element?

A. Z-index
B. Position
C. Overflow
D. Clip

Q6. Which CSS Property Is Used For Controlling The Layout?

A. Header
B. Footer
C. Display
D. None Of The Above

Q7. Which CSS Property Sets A Background Image For An Element?

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

Q12. How Can We Write Comment Along With CSS Code ?

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

Q14. The Default Value Of "position" Attribute Is


A. Fixed
B. Absolute
C. Inherit
D. Static

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

Q19. Which of the following option a rule consists of?


A. Selector
B. Tag
C. Declaration
D. Option 1 & 3

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

Q23. Who invented css?

A. Håkon Wium Lie


B. Tim Berners-Lee
C. Rasmus Lerdorf
D. None of above

Q24. CSS is written in which language?


A. PHP
B. HTML
C. JAVA
D. Python

Q25. what is the full form of css

A. Correct Style Sheets


B. Cascading Style Sheets
C. Cascading Style Systems
D. None of above

Q26. What is the latest version of css?

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;}

Q30. ................. property sets the font size of text.

A. size
B. text
C. font-size
D. text-size

Please Visit OnlineInterviewquestions.com to download more pdfs

You might also like