Top 500 CSS MCQ Interview Questions

Question 201: Which CSS property controls the text alignment in a block element?
Question 202: What is the default value of the position property in CSS?
Question 203: Which of the following is NOT a valid CSS unit?
Question 204: How can you change the color of a link when it is clicked?
Question 205: Which CSS property is used to change the cursor style?
Question 206: What does the display: none; property do?
Question 207: How can you apply a style only when an element is focused?
Question 208: Which property is used to create a space between elements in a flex container?
Question 209: Which of the following is a valid CSS selector for an element with the class "box"?
Question 210: Which CSS property is used to apply shadows to elements?
Question 211: What does text-overflow: ellipsis; do?
Question 212: How can you make a block element take only the width of its content?
Question 213: What does the background-repeat property do?
Question 214: Which property is used to change the transparency of an element?
Question 215: Which CSS property is used to create space between the border and the content of an element?
Question 216: What does flex-wrap: wrap; do?
Question 217: Which property controls the text shadow effect?
Question 218: Which of the following is a correct way to include CSS in an HTML document?
Question 219: What is the purpose of the @keyframes rule in CSS?
Question 220: Which property specifies the number of columns an element should have?
Question 221: How do you select an element with the ID "main"?
Question 222: Which property is used to control the visibility of an element?
Question 223: What is the default value of the flex-direction property?
Question 224: Which property is used to set the size of a background image?
Question 225: What is the purpose of the @media rule in CSS?
Question 226: Which property is used to change the alignment of flex items?
Question 227: What does the margin: auto; property do?
Question 228: How can you remove the default list styling in CSS?
Question 229: Which property is used to change the font weight?
Question 230: What does overflow: hidden; do?
Question 231: Which CSS property controls the layout of grid items?
Question 232: Which property is used to create a responsive design?
Question 233: What does the border: 1px solid black; property do?
Question 234: Which of the following is a valid CSS animation property?
Question 235: What is the purpose of the float property in CSS?
Question 236: Which property controls the size of an element?
Question 237: Which of the following is a shorthand property for margin and padding?
Question 238: What does the transform property do in CSS?
Question 239: How do you create a CSS class?
Question 240: What does the @import rule do in CSS?
Question 241: Which of the following is a valid CSS property for setting a background color?
Question 242: How do you make a responsive grid layout?
Question 243: Which property is used to specify a font size?
Question 244: What is the effect of opacity: 0.5; on an element?
Question 245: Which of the following is NOT a CSS color value?
Question 246: Which property is used to set the width of an element?
Question 247: Which value should you use to make a background image scroll with the content?
Question 248: What does the visibility: hidden; property do?
Question 249: How do you specify multiple background images in CSS?
Question 250: Which property is used to change the text color?

Showing 201-250 of 500 questions

Contact Tech Spakes Training