Skip to content
Basics of CSS
- What is CSS?
- What are the different types of CSS?
- What is the difference between inline, internal, and external CSS?
- What are the advantages of using CSS?
- What is the syntax of a CSS rule?
- What is the use of the
class
and id
selectors in CSS?
- What is the difference between
class
and id
?
- How do you include CSS in an HTML page?
- What is a CSS selector?
- What is specificity in CSS?
CSS Selectors
- What is a universal selector in CSS?
- What is the difference between
>
and in CSS selectors?
- What does the
+
selector do in CSS?
- How do you select elements with a specific attribute in CSS?
- What is a pseudo-class in CSS?
- What is a pseudo-element in CSS?
- How do you style every third child element using CSS?
- How does the
nth-child()
pseudo-class work?
- What is the difference between
:nth-child()
and :nth-of-type()
?
- What does the
:not()
selector do?
CSS Box Model
- What is the CSS box model?
- What are the components of the box model?
- How does
margin
differ from padding
?
- What is the difference between
border-box
and content-box
?
- How do you center an element using CSS?
- How do you make a website responsive using CSS?
- What is the use of
z-index
?
- What is the difference between
position: absolute
, relative
, fixed
, and sticky
?
- What is the
display
property in CSS?
- What does
visibility: hidden
do?
- What’s the difference between
visibility: hidden
and display: none
?
- How do you apply styles to visited and unvisited links?
- What are media queries?
- What is the use of
overflow
in CSS?
- What is collapsing margin?
CSS Flexbox and GRID
- What is Flexbox in CSS?
- How do you create a flex container?
- What are the main axis and cross axis in Flexbox?
- What does
justify-content
do?
- What does
align-items
do?
- What is the difference between
align-items
and align-content
?
- What is
flex-grow
, flex-shrink
, and flex-basis
?
- What is shorthand for
flex-grow
, flex-shrink
, and flex-basis
?
- How do you align one item at the end in a flex container?
- What is the default value of
flex-direction
?
- What is CSS Grid?
- What’s the difference between Grid and Flexbox?
- How do you create a grid layout?
- What does
grid-template-columns
do?
- What is
grid-gap
?
- How do you place an item in a specific grid cell?
- What is the
fr
unit in CSS Grid?
- What is
auto-fit
and auto-fill
in CSS Grid?
- Can Grid and Flexbox be used together?
- What does
grid-area
do?
CSS Units and Values
- What are the different CSS units?
- What is the difference between
em
and rem
?
- What is the difference between
%
, vw
, and vh
?
- What are absolute and relative units in CSS?
- When would you use
calc()
in CSS?
- What is responsive web design?
- What are media queries and how are they used?
- What is a breakpoint in responsive design?
- How do you hide elements on smaller screens?
- What’s the difference between
min-width
and max-width
in media queries?
CSS Positioning & Animations and Transitions
- How does
position: absolute
behave?
- What is the difference between
relative
and static
positioning?
- What is
sticky
positioning?
- How does
z-index
affect layering?
- Can a positioned element be placed relative to a non-positioned parent?
- What is the difference between animation and transition?
- What is the use of
transition
in CSS?
- What properties can be animated with
transition
?
- How do you create keyframe animations in CSS?
- What does
animation-fill-mode
do?
- What are variables in CSS?
- How do you define and use a CSS variable?
- What is the
inherit
, initial
, and unset
value?
- What is the difference between
important
and specificity?
- What are pseudo-elements? Give examples.
- How do you make an element circular using CSS?
- How do you remove bullet points from a list?
- What is the difference between
inline
, block
, and inline-block
elements?
- How do you make a div scrollable?
- How can you create a sticky footer?
Browser Compatibility and Performance
- What are vendor prefixes in CSS?
- How do you handle cross-browser issues in CSS?
- How can you optimize CSS for better performance?
- What is the cascade in CSS?
- What is the purpose of a CSS reset?
Debugging and Tools
- How do you debug CSS in the browser?
- What are some browser dev tools used for CSS debugging?
- What is the use of
outline
in debugging?
- What is the difference between
outline
and border
?
- How can you check if a CSS rule is being overridden?
- What is Bootstrap in CSS?
- What are the advantages of using CSS frameworks?
- What is a CSS preprocessor? Name some.
- What is the difference between SASS and SCSS?
- Can you write nested rules in plain CSS?
error: Content is protected !!