CSS Web Programming MCQs

100
Score: 0
Attempted: 0/100
1. Which CSS property is used to create rounded corners on elements?



2. Which value rounds all four corners of an element equally?



3. Which CSS property allows using an image as the border of an element?



4. Which three sub-properties are commonly used with border-image?



5. Which CSS property sets the background color of an element?



6. Which property sets an image as the background of an element?



7. Which CSS property controls whether a background image repeats?



8. Which CSS property sets the position of a background image?



9. Which CSS property defines the overall color of text?



10. Which of these is a valid CSS color keyword?



11. Which of the following is NOT a valid CSS color keyword?



12. Which CSS function creates a linear gradient?



13. Which CSS function creates a gradient radiating from the center outward?



14. Which CSS property applies a shadow to text?



15. Which CSS property applies a shadow to a box element?



16. Which of the following values is required to define a basic box shadow?



17. How do you make a circular element using border-radius?



18. Which CSS property sets multiple background images on the same element?



19. Which CSS gradient can be used to create repeating stripes?



20. Which of the following is a correct syntax for a text shadow?



21. Which CSS property adds a shadow effect to text?



22. Which CSS property is used to transform text into uppercase?



23. Which property is used to control letter spacing in text?



24. Which CSS property allows importing and using custom fonts?



25. Which property defines the name of the custom font inside @font-face?



26. Which property specifies the URL of a custom font in @font-face?



27. Which CSS property rotates an element in 2D space?



28. Which CSS function moves an element along the X and Y axes?



29. Which property can skew an element along the X or Y axis in 2D?



30. Which property resizes an element in 2D space?



31. Which CSS property applies a perspective to 3D transformed elements?



32. Which property sets the origin point for 3D transformations?



33. Which CSS function rotates an element around the X-axis in 3D?



34. Which function rotates an element around the Y-axis?



35. Which CSS function rotates an element around the Z-axis?



36. Which CSS function allows rotating an element in an arbitrary 3D axis?



37. Which CSS function moves an element in 3D space along X, Y, and Z axes?



38. Which CSS function scales an element in 3D space?



39. Which property combines multiple 2D and 3D transformations in one declaration?



40. Which property allows smooth transitions for 2D and 3D transforms?



41. #41: Which CSS property defines how long a transition should take to complete?



42. Which property sets the timing function for a CSS transition?



43. Which property specifies which CSS properties should transition?



44. Which at-rule defines keyframes for CSS animations?



45. Which property sets the name of the animation to use?



46. Which property controls how many times an animation should play?



47. Which CSS property displays additional information when hovering over an element?



48. Which CSS pseudo-class is commonly used to show a tooltip on hover?



49. Which CSS property adds a border radius to an image?



50. Which CSS property applies a shadow to an image?



51. Which CSS property controls the opacity of an image?



52. Which CSS property can make an image grayscale?



53. Which CSS property is used to display an image in a modal popup?



54. Which property centers an image inside a modal container?



55. Which property adds a transition effect to an image hover state?



56. Which CSS function can scale an image on hover?



57. Which pseudo-class is used to change an image style when hovered?



58. Which CSS property can make an image appear circular?



59. Which CSS property adds a smooth transition effect when hovering over an image?



60. Which property is commonly used with image modals to darken the background?



61. Which CSS property centers an image horizontally inside a block element?



62. Which property centers an image inside a parent using flexbox?



63. Which CSS filter makes an image appear brighter?



64. Which filter converts an image to grayscale?



65. Which CSS property creates circular or elliptical image shapes?



66. Which CSS property can clip an image into a custom shape?



67. Which property determines how an image fits into its container?



68. Which object-fit value scales the image to cover the entire container, possibly cropping?



69. Which object-fit value scales the image to fit inside the container without cropping?



70. Which object-fit value stretches the image to fill the container, ignoring aspect ratio?



71. Which CSS property sets the alignment of an image inside its container?



72. Which is the correct syntax to position an image at the top right of its container using object-position?



73. Which filter blurs an image?



74. Which filter adjusts image contrast?



75. Which CSS property is used to create rounded corners for circular or oval images?



76. Which filter rotates the hue of an image?



77. Which object-position value centers an image inside its container?



78. Which object-fit value leaves the image at its original size?



79. Which filter inverts the colors of an image?



80. Which filter increases the saturation of an image?



81. Which CSS property is used to hide parts of an image or element?



82. Which property sets the image to use as a mask?



83. Which property sets the size of a mask image?



84. Which CSS property creates clickable buttons with custom styles?



85. Which property changes the background color of a button on hover?



86. Which property adds a shadow effect to a button?



87. Which property creates pagination links for a website?



88. Which property styles active pagination links?



89. Which property sets the number of columns for multi-column layout?



90. Which property sets the width of each column in a multi-column layout?



91. Which property sets the gap between columns?



92. Which property allows an element to span multiple columns?



93. Which CSS property controls the appearance of a scrollbar?



94. Which pseudo-element styles the scrollbar thumb?



95. Which property changes the cursor when hovering over a UI element?



96. Which property sets the visual focus style of an input element?



97. Which property disables text selection for UI elements?



98. Which property makes a UI element unclickable while still visible?



99. Which property adds smooth transitions to UI element changes?



100. Which property controls the stacking order of UI elements?



Contents Copyrights Reserved By T4Tutorials