[go: up one dir, main page]

0% found this document useful (0 votes)
19 views6 pages

Top 40 CSS Interview Questions For Freshers

The document lists the top 40 CSS interview questions for freshers, covering basic concepts, selectors and specificity, layout and positioning, and advanced features. It includes questions about CSS fundamentals, such as the box model, selectors, positioning schemes, and responsive design techniques. Additionally, it addresses advanced topics like CSS preprocessors, animations, and media queries.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views6 pages

Top 40 CSS Interview Questions For Freshers

The document lists the top 40 CSS interview questions for freshers, covering basic concepts, selectors and specificity, layout and positioning, and advanced features. It includes questions about CSS fundamentals, such as the box model, selectors, positioning schemes, and responsive design techniques. Additionally, it addresses advanced topics like CSS preprocessors, animations, and media queries.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

TOP 40 CSS

INTERVIEW
QUESTIONS
FOR
FRESHERS
Basic CSS Concepts
1. What is CSS, and what does it stand for?
2. How do you include CSS in a web page?
3. What are the benefits of using CSS?
4. Explain the CSS box model and its components.
5. What is the difference between class and id selectors in
CSS?
6. How do you center a block element horizontally in CSS?
7. What is the difference between padding and margin?
8. How can you make a background image responsive in CSS?
9. What is the difference between inline, inline-block, and
block elements in CSS?
10. How do you select all paragraph elements inside a div
using CSS?
CSS Selectors and
Specificity
1. What are the different types of selectors in CSS?
2. How does CSS specificity work?
3. What is a pseudo-class in CSS? Provide examples.
4. What is a pseudo-element in CSS? Provide examples.
5. How do attribute selectors work in CSS?
6. Explain the difference between the child (>) and
descendant (space) combinators in CSS.
7. How can you apply styles to an element when the user
hovers over it?
8. What is the universal selector in CSS, and how is it used?
9. How do you target elements that are the first child of their
parent in CSS?
10. What is the :nth-child() selector in CSS, and how does it
work?
CSS Layout and
Positioning
1. What are the different positioning schemes in CSS?
2. Explain the difference between relative, absolute, fixed,
and static positioning.
3. How does the CSS float property work?
4. What is Flexbox in CSS, and when would you use it?
5. How do CSS Grid and Flexbox differ?
6. How can you create a two-column layout using CSS?
7. What is the z-index property in CSS, and how does it
function?
8. How do you make an element stick to the top of the page
when scrolling?
9. What is the CSS display property, and what are some of its
values?
10. How can you create a responsive design using CSS?
Advanced CSS
Features
1. What are CSS preprocessors, and can you name a few?
2. How do you implement CSS animations?
3. What are CSS transitions, and how do they differ from
animations?
4. How can you optimize CSS for better performance?
5. What is a CSS sprite, and how is it used?
6. How do media queries work in CSS?
7. What is the purpose of the box-sizing property in CSS?
8. How can you create a CSS triangle?
9. What is the difference between visibility: hidden and
display: none in CSS?
10. How do you apply a style only to specific devices or
screen sizes using CSS?
FOUND THIS
HELPFUL?
FOLLOW
FOR MORE!
Sanuj Bansal

You might also like