Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 933 Bytes

File metadata and controls

31 lines (20 loc) · 933 Bytes

CSS Interview Questions and Answers

1.What is CSS?

  • CSS stands for Cascading Style Sheets. CSS is used to define styles for your web pages, including the design, layout and variations in display for different devices and screen sizes.

2.Explain the difference between margin and padding?

  • Margin is the space outside the border of an element, while padding is the space inside the border of an element.

3.It is possible to change an inline element into a block level element?

  • Yes, it is possible by using css properties display: block;

4.What are CSS backgrounds, list the properties?

used to define the background effects for elements.

  • background:
  • background-color:
  • background-image:
  • background-repeat:
  • background-attachment:
  • background-position:

5.What are the different types of Selectors in CSS?

  • Universal Selector:
  • Element Type Selector:
  • ID Selector:
  • Class Selector: