CSS MCQ Quiz & Test

Take CSS Quiz To test your Knowledge 

Below are few CSS MCQ test that checks your basic knowledge of CSS Framework. This CSS Test contains around 15 questions of multiple choice type with 4 options. You have to select the right answer to a question. You can see the correct answer by clicking view answer link.

Also, Read Best CSS interview questions.

1. What Is CSS Stand For

  • Cascading Style Sheets
  • Cascade Style Sheet
  • Color Style Sheets
  • Cascade Sheets Style
View Answer

2. Pseudo-classes In CSS

  • Match A Specified Element
  • Select The Active Links
  • Are Used To Select All The Visited Links
  • Are Used To Define A Special State Of An Element
View Answer

3. Which Event Will Be Used When A Connection To The Server Is Opened.

  • Onmessage
  • Onopen
  • Onerror
  • None Of The Above

4. Which Is The Correct CSS Syntax?

  • Body:color=black
  • {body;color:black}
  • {body:color=black(body}
  • Body {color: Black}
View Answer

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

  • Z-index
  • Position
  • Overflow
  • Clip
View Answer

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

  • Header
  • Footer
  • Display
  • None Of The Above
View Answer

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

  • Background - Color
  • Background - Image
  • Background - Attachment
View Answer

8. If We Want Define Style For An Unique Element, Then Which Css Selector Will We Use ?

  • Id
  • Text
  • Class
  • Name

9. Which Of The Following Properties Will We Use To Display Border Around A Cell Without Any Content ?

  • Noncontent-cell
  • Blank-cell
  • Empty-cell
  • Void-cell
View Answer

10. What Should Be The Table Width, So That The Width Of A Table Adjust To The Current Width Of The Browser Window?

  • 640 Pixels
  • 100.00%
  • Full-screen
  • 1024 Px
View Answer

11. When We Write <img Src="img.png">, What "img.png" Inside Double Quote Implies?

  • Value
  • Element
  • Attribute
  • Operator

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

  • / A Comment /
  • // A Comment //
  • /* A Comment */
  • <' A Comment'>
View Answer

13. Which CSS Property Is Used To Control The Text Size Of An Element ?

  • Font-style
  • Font-size
  • Text-size
  • Text-style
View Answer

14. The Default Value Of "position" Attribute Is

  • Fixed
  • Absolute
  • Inherit
  • Relative
View Answer

15. Which Of The Following Selector Selects All Elements Of E That Have The Attribute Attr That End With The Given Value?

  • E[attr^=value]
  • E[attr$=value]
  • E[attr*=value]
  • None Of The Mentioned
View Answer

16. Which Of The Following Selector Selects The Elements That Are Checked?

  • E ~ F
  • ::after
  • :checked
  • None Of The Mentioned
View Answer

17. Which Of The Following Selector Selects An Element That Has No Children?

  • :empty
  • :nochild
  • :inheritance
  • :no-child

18. Which Of The Following Selector Selects An Element If It's The Only Child Of Its Parent?

  • :nth-oftype(n)
  • :only-child
  • :root
  • None Of The Mentioned
View Answer

Write For Us.

Contribute the Community.