Top 500 CSS MCQ Interview Questions

Question 101: Which of the following is a valid way to apply a CSS style to an element with the ID "header"?
Question 102: Which CSS property is used to create space between the border of an element and its content?
Question 103: What does the display: none; style do?
Question 104: Which property is used to set the left margin of an element?
Question 105: Which property would you use to change the font of an element?
Question 106: What does the visibility: hidden; style do?
Question 107: Which of the following values can position property accept?
Question 108: What is the purpose of the clear property in CSS?
Question 109: Which CSS property would you use to change the text color?
Question 110: Which value for the position property allows an element to be positioned relative to its normal position?
Question 111: What is the effect of overflow: hidden;?
Question 112: Which of the following CSS properties is used to control the text indentation?
Question 113: Which of the following is used to specify a grid layout in CSS?
Question 114: What is the purpose of the @media rule in CSS?
Question 115: Which property is used to specify how a list should be displayed?
Question 116: Which CSS property is used to control the flex-grow of an element?
Question 117: Which property is used to define the space between cells in a table?
Question 118: Which CSS property is used to change the font size of an element?
Question 119: What does the transform: translate(50px, 100px); do?
Question 120: Which property is used to set the spacing between the items in a flex container?
Question 121: Which value of the display property would you use to make an element a block-level element?
Question 122: What is the purpose of the :hover pseudo-class?
Question 123: Which property would you use to create a smooth transition effect when changing the background color?
Question 124: How do you target all <h1> elements inside a <div> with a class of "container"?
Question 125: Which property is used to apply styles to an element when it is focused?
Question 126: What is the default value of the list-style-type property for an unordered list?
Question 127: Which property is used to set the opacity level of an element?
Question 128: Which of the following CSS properties is used to apply a filter effect?
Question 129: How do you change the font style of an element to italic?
Question 130: Which CSS property is used to specify the amount of space between lines of text?
Question 131: Which CSS property controls the text alignment?
Question 132: Which of the following values for the position property is used for elements that should remain fixed in the viewport?
Question 133: Which property is used to change the cursor style when hovering over an element?
Question 134: What is the default value of the position property?
Question 135: Which CSS property is used to create a shadow effect for text?
Question 136: What does the float property do?
Question 137: Which property is used to set the background color of an element?
Question 138: Which of the following CSS units is relative to the viewport width?
Question 139: Which of the following is NOT a valid CSS unit?
Question 140: What is the purpose of the z-index property?
Question 141: Which CSS property is used to set the width of an element?
Question 142: How do you apply a CSS class named "highlight" to an HTML element?
Question 143: Which property is used to set the background image of an element?
Question 144: Which of the following CSS properties is used to apply a linear gradient background?
Question 145: What does the align attribute do in CSS?
Question 146: Which property controls the visibility of an element based on its display status?
Question 147: What is the purpose of the @font-face rule in CSS?
Question 148: Which property is used to set the size of the border of an element?
Question 149: How do you make a list display horizontally instead of vertically?
Question 150: Which of the following is a CSS framework?

Showing 101-150 of 500 questions

Contact Tech Spakes Training