Below given some basic interview question on css.
Basic css Q.
- What is external Style Sheet?
- What is the need for CSS?
- Explain inline, embedded and external style sheets.
- What is the Difference between display:none and visibility: hidden?
- What is the default margin and padding of h1,h2,h3,h4,h5,h6
- In CSS, how define the space between the element’s border and content?
CSS selector Q
- What is the use of contextual selector?
- What are the two parts of CSS declaration?
- Can I attach more than one declaration to a selector?
- How do you write the multiple class in one tag?u write the multiple class in one tag?
- What is Attribute selectors?
- What is id and class selectors with html tag ?
Css Box model Q
- How many features in css box model?
- What and how works padding and margin?
Item Position Q
- What are the five possible values for “position”?
- What are Floating elements in CSS?
- How to float the image left side and let the page content fill right side and bottom in CSS
- To define the space between the element’s border and content, you use the padding property, but are you allowed to use negative values?
IE z-index Q
- What are the issues encountered with IE z-index?