Top 500 CSS MCQ Interview Questions

Question 151: Which of the following is the correct way to apply a CSS style to an HTML element?
Question 152: Which CSS property is used to specify the font of an element?
Question 153: Which CSS property controls the space between the content and the border of an element?
Question 154: What is the purpose of the @import rule in CSS?
Question 155: Which property is used to set the horizontal alignment of inline elements?
Question 156: How can you apply a CSS style only when an element is hovered over?
Question 157: What is the correct syntax for applying a CSS class to an HTML element?
Question 158: Which CSS property is used to change the color of text?
Question 159: How do you make a list not display bullet points?
Question 160: Which CSS property specifies the type of list-item marker?
Question 161: Which CSS property is used to create space between the text and the border?
Question 162: What is the purpose of the float property in CSS?
Question 163: How do you create a CSS rule that applies to all <p> elements inside <div> elements?
Question 164: Which CSS property is used to control the text size?
Question 165: Which of the following properties controls the text decoration?
Question 166: What does the display: inline; property do?
Question 167: Which of the following is used to apply multiple styles to an element in CSS?
Question 168: How do you select all <h1> elements that are direct children of a <div> element?
Question 169: What does the position: absolute; property do?
Question 170: Which property is used to change the background color of an element?
Question 171: How can you apply a style only if a specific condition is met using media queries?
Question 172: Which of the following CSS properties is used for text transformation?
Question 173: What is the purpose of the visibility property in CSS?
Question 174: How do you specify that a property should apply only if an element is focused?
Question 175: Which CSS property sets the font size for a heading?
Question 176: What is the correct syntax to define a CSS class?
Question 177: How do you apply styles to elements with multiple classes in CSS?
Question 178: Which property is used to change the line height in CSS?
Question 179: What is the purpose of the flex property in CSS?
Question 180: Which of the following is a CSS layout model?
Question 181: How do you center an element using flexbox?
Question 182: Which property controls the order of flex items?
Question 183: What is the default value of the display property for a <div> element?
Question 184: What does opacity: 0; do to an element?
Question 185: Which CSS property is used to create a shadow effect on text?
Question 186: Which of the following selectors would select an element with the ID of "header"?
Question 187: What does the z-index property control?
Question 188: How can you create rounded corners for an element?
Question 189: Which CSS property controls the space between lines of text?
Question 190: Which of the following is a correct way to import a Google Font?
Question 191: How do you specify that a property should apply only to screens with a max width of 600px?
Question 192: Which of the following properties is used to change the cursor when hovering over an element?
Question 193: What does background-size: cover; do?
Question 194: Which property is used to control the layout of a grid container?
Question 195: What does the flex-direction property do?
Question 196: Which of the following values can be used with the display property?
Question 197: Which CSS property is used to change the font of an element?
Question 198: What does the margin property do?
Question 199: Which property is used to specify a background image in CSS?
Question 200: What is the purpose of the overflow property in CSS?

Showing 151-200 of 500 questions

Contact Tech Spakes Training