HR/Admin : +91-7827547816
Sales : +91-7827547816
+91-9599109956
training@techspakes.com
Toggle navigation
Home
Training Courses
HTML
Website Development
WordPress Development
Front End Development
Graphics Designer
Linux Admin
MERN
Angular
Hybrid Mobile App
Drupal
Full Stack
React Native Developer
MVC
MEAN
SMM
SEO
SMO
Lead Generation
Web Development Training in Noida
Web Development Training in Jaipur
Web Development Training in Chandigarh
Computer Training in Satnali
Our Locations
Computer Training in Dahina
Computer Training in Mahendergarh
Computer Training in Narnaul
Computer Training in Satnali
Computer Training in Rewari
Computer Training in Kanina
Computer Training in Ateli Mandi
Computer Training in Bhiwani
Computer Training in Charkhi Dadri
Interview Questions
HTML Interview Questions
CSS Interview Questions
Bootstrap4 Interview Questions
Bootstrap5 Interview Questions
Javascript Interview Questions
IT Services
Testimonial
Our Top Placements
Contact
Top 500 CSS MCQ Interview Questions
Training
Top 500 CSS MCQ Interview Questions
Question 251:
What is the purpose of the z-index property in CSS?
A. To control the stacking order of elements
B. To set the transparency of an element
C. To apply animations
D. To adjust font sizes
Question 252:
Which of the following is a valid CSS pseudo-element?
A. ::before
B.
C.
D. All of the above
Question 253:
How can you create a grid layout using CSS?
A. Using flexbox
B. Using grid properties
C. Both a and b
D. Using float
Question 254:
What is the effect of opacity: 1; on an element?
A. The element is fully transparent
B. The element is semi-transparent
C. The element is fully opaque
D. The element is invisible
Question 255:
Which CSS property is used to control the flow of text in a container?
A. white-space
B. overflow
C. text-flow
D. flow
Question 256:
Which CSS property is used to change the direction of text?
A. direction
B. text-direction
C. text-align
D. writing-mode
Question 257:
What does display: inline-block; do?
A. Makes an element display as a block element
B. Makes an element display as an inline element, but it retains block properties
C. Hides the element
D. Centers the element
Question 258:
Which property is used to add space between elements in a grid layout?
A. gap
B. margin
C. padding
D. space
Question 259:
What does the overflow-x property do?
A. Controls vertical overflow
B. Controls horizontal overflow
C. Hides all overflow
D. Displays all overflow
Question 260:
Which of the following is NOT a CSS display value?
A. inline
B. block
C. flex
D. matrix
Question 261:
What does the box-sizing property do?
A. Changes how the width and height of an element are calculated
B. Sets the border color
C. Adds padding to the element
D. Controls the visibility of the box
Question 262:
Which property is used to create a fixed position for an element?
A. position: absolute;
B. position: relative;
C. position: fixed;
D. position: sticky;
Question 263:
What is the purpose of text-transform property?
A. To change the color of the text
B. To adjust the font size
C. To control the capitalization of text
D. To add shadows to text
Question 264:
How do you set a background color for an element?
A. background: color;
B. background-color: color;
C. bg-color: color;
D. color: background;
Question 265:
Which property defines the space between the border and the content of an element?
A. margin
B. padding
C. border
D. spacing
Question 266:
What does position: relative; do?
A. Positions an element relative to its normal position
B. Positions an element relative to the viewport
C. Positions an element at a fixed location
D. None of the above
Question 267:
Which property allows you to create rounded corners?
A. border-radius
B. corner-radius
C. round-corners
D. border-corner
Question 268:
Which property is used to set the text size of an element?
A. text-size
B. font-size
C. size
D. font-style
Question 269:
What does the float property do?
A. Moves an element to the left or right of its container
B. Centers an element
C. Hides an element
D. Changes the background color
Question 270:
How do you center a block element horizontally?
A. margin: auto;
B. text-align: center;
C. align: center;
D. Both a and b
Question 271:
Which CSS property is used to specify the type of list item marker?
A. list-style-type
B. list-item-type
C. marker-type
D. bullet-type
Question 272:
What does the visibility property control?
A. The visibility of an element
B. The display of an element
C. The opacity of an element
D. None of the above
Question 273:
Which of the following properties is used to change the spacing between lines of text?
A. line-height
B. letter-spacing
C. word-spacing
D. text-spacing
Question 274:
What does the display: grid; property do?
A. Makes the element a grid container
B. Centers the content
C. Hides the element
D. None of the above
Question 275:
How can you prevent text from wrapping in an element?
A. white-space: nowrap;
B. text-wrap: no-wrap;
C. overflow: hidden;
D. None of the above
Question 276:
Which property is used to control the vertical alignment of inline elements?
A. vertical-align
B. align-items
C. text-align
D. align-vertical
Question 277:
What does background-size: cover; do?
A. Resizes the background image to cover the entire container
B. Resizes the background image to fit within the container
C. Maintains the original size of the background image
D. None of the above
Question 278:
Which CSS property is used to create space outside an element?
A. padding
B. margin
C. border
D. spacing
Question 279:
How do you set a minimum height for an element?
A. min-height
B. height-min
C. min-size
D. height: min;
Question 280:
What does text-decoration: underline; do?
A. Underlines the text
B. Strikes through the text
C. Changes the text color
D. None of the above
Question 281:
Which property is used to control the layout of flex items?
A. flex-direction
B. align-items
C. justify-content
D. All of the above
Question 282:
Which value of the position property removes an element from the document flow?
A. static
B. relative
C. absolute
D. fixed
Question 283:
What does the filter property do in CSS?
A. Applies graphical effects to an element
B. Hides an element
C. Adjusts the color of text
D. None of the above
Question 284:
Which property is used to set the background image?
A. background-image
B. bg-image
C. image-background
D. Both a and b
Question 285:
Which of the following is a CSS framework?
A. Bootstrap
B. Angular
C. React
D. Vue
Question 286:
What is the purpose of the @media rule in CSS?
A. To define styles for different media types
B. To import styles from other stylesheets
C. To create responsive designs
D. Both a and c
Question 287:
How do you set a font to be bold?
A. font-weight: bold;
B. font-style: bold;
C. text-weight: bold;
D. Both a and b
Question 288:
Which property controls the position of an element in a flex container?
A. order
B. align-self
C. justify-content
D. Both a and b
Question 289:
What does the :nth-child() pseudo-class do?
A. Selects an element based on its index in a parent
B. Selects all children of an element
C. Selects the first child only
D. None of the above
Question 290:
Which of the following can be used to apply multiple classes to an element?
A. class="class1 class2"
B. class="class1, class2"
C. class="class1.class2"
D. Both a and c
Question 291:
What is the default value of the position property?
A. static
B. relative
C. absolute
D. fixed
Question 292:
Which CSS property is used to control the space between letters?
A. letter-spacing
B. text-spacing
C. word-spacing
D. line-height
Question 293:
How do you set a specific font family in CSS?
A. font-family: Arial;
B. font: Arial;
C. family: Arial;
D. Both a and b
Question 294:
What does background-repeat: no-repeat; do?
A. Prevents the background image from repeating
B. Allows the background image to repeat
C. Sets the background image to cover
D. None of the above
Question 295:
Which property is used to create space between the border and content of an element?
A. margin
B. padding
C. border
D. spacing
Question 296:
What is the purpose of the @font-face rule?
A. To load custom fonts
B. To import external stylesheets
C. To create animations
D. To control font sizes
Question 297:
Which of the following is NOT a valid value for the position property?
A. static
B. relative
C. fixed
D. attached
Question 298:
What does overflow: auto; do?
A. Adds scrollbars only when necessary
B. Hides overflow content
C. Always shows scrollbars
D. None of the above
Question 299:
What does the aspect-ratio property do?
A. Controls the ratio of width to height of an element
B. Sets the maximum width of an element
C. Sets the minimum height of an element
D. None of the above
Question 300:
How do you apply CSS styles inline?
A. Using
<style>
tag
B. Using style attribute within an HTML element
C. Using an external stylesheet
D. Both a and b
«
1
2
3
4
5
6
7
8
9
10
»
Showing 251-300 of 500 questions