css Interview Question

Below given some basic interview question on css.

Basic css Q.

  1. What is external Style Sheet?
  2. What is the need for CSS?
  3. Explain inline, embedded and external style sheets.
  4. What is the Difference between display:none and visibility: hidden?
    1. What is the default margin and padding of h1,h2,h3,h4,h5,h6
    2. In CSS, how define the space between the element’s border and content?

CSS selector Q

  1. What is the use of contextual selector?
  2. What are the two parts of CSS declaration?
  3. Can I attach more than one declaration to a selector?
  4. How do you write the multiple class in one tag?u write the multiple class in one tag?
  5. What is Attribute selectors?
  6. What is id and class selectors with html tag ?

Css Box model Q

  1. How many features in css box model?
  2. What and how works padding and margin?

Item Position Q

  1. What are the five possible values for “position”?
  2. What are Floating elements in CSS?
  3. How to float the image left side and let the page content fill right side and bottom in CSS
  4. 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

  1. What are the issues encountered with IE z-index?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s