500 CSS MCQ Interview Questions

Question 1: Which CSS property is used to change the text color of an element?
Question 2: What does CSS stand for?
Question 3: How do you add a background color for all <h1> elements?
Question 4: Which property is used to set the spacing between lines of text?
Question 5: How do you make the text bold using CSS?
Question 6: Which property is used to set the background color of an element?
Question 7: Which CSS property controls the text size?
Question 8: Which of the following is the correct way to apply a font family in CSS?
Question 9: How do you create rounded corners in CSS?
Question 10: Which property is used to change the font of an element?
Question 11: Which CSS property is used to control the element's position on the screen?
Question 12: What is the default value of the position property in CSS?
Question 13: How can you center an element horizontally in CSS?
Question 14: How do you make a list not display bullet points?
Question 15: Which of the following is not a CSS framework?
Question 16: How do you make an image responsive in CSS?
Question 17: What is the correct syntax for a CSS comment?
Question 18: How do you apply the same style to multiple elements in CSS?
Question 19: Which CSS property is used to make the text italic?
Question 20: Which of the following CSS properties can be used to control the overflow of content?
Question 21: What does the z-index property do in CSS?
Question 22: How do you select an element with the ID header in CSS?
Question 23: How do you select all <p> elements inside a <div> element?
Question 24: Which property is used to set the width of an element?
Question 25: How do you create a shadow effect for an element in CSS?
Question 26: Which CSS property is used to make text uppercase?
Question 27: How do you set the opacity of an element in CSS?
Question 28: Which property is used to set the background image of an element?
Question 29: How do you specify that a border should be dashed in CSS?
Question 30: What is the :hover pseudo-class used for?
Question 31: Which property is used to change the cursor icon when the mouse is over an element?
Question 32: How do you make an element invisible but keep it in the layout?
Question 33: How can you force an element to stay on one line, regardless of the container's width?
Question 34: What is the box-sizing property used for in CSS?
Question 35: Which CSS property is used to create space between the content of an element and its border?
Question 36: What is the correct value to add a dotted border around an element?
Question 37: How do you set an image to repeat both horizontally and vertically in the background?
Question 38: Which property is used to control the order of flex items within a flex container?
Question 39: How do you apply styles only to screen media types in CSS?
Question 40: Which property in CSS is used to set the space between the border and margin of an element?
Question 41: How do you make a block-level element inline in CSS?
Question 42: Which of the following values removes an element from the normal document flow in CSS?
Question 43: What is the CSS property used to set the gap between columns in a multi-column layout?
Question 44: Which of the following is the default value of the display property for a <div> element?
Question 45: Which property allows text to overflow beyond its containing element in CSS?
Question 46: What is the use of the float property in CSS?
Question 47: Which of the following values for the position property will make an element scroll with the page?
Question 48: What is the default value for the flex-direction property in CSS Flexbox?
Question 49: Which property is used to control the speed of a CSS animation?
Question 50: How do you make a background image cover the entire area of an element in CSS?

Showing 1-50 of 500 questions

Contact Tech Spakes Training