Monday, January 4, 2010

CSS interview questions and answer 1

Explain in brief about the term CSS.    

Answer
A stylesheet language used to describe the presentation of a document written in a markup language. Cascading Style Sheets are a big breakthrough in Web design because they allow developers to control the style and layout of multiple Web pages all at once.

What are the various style sheets? 

Answer
Inline, external, imported and embedded are the different types of style sheets.

What are style sheet properties?   

Answer
CSS Background
CSS Text
CSS Font
CSS Border
CSS Outline
CSS Margin
CSS Padding
CSS List
CSS Table

List various font attributes used in style sheet.       

Answer
font-style
font-variant
font-weight
font-size/line-height
font-family
caption
icon
menu
message-box
small-caption
status-bar

Explain inline, embedded and external style sheets. 

Answer
Inline
If only a small piece of code has to be styled then inline style sheets can be used.
Embedded
Embedded style sheets are put between the tags.
External
If you want to apply a style to all the pages within your website by changing just one style sheet, then external style sheets can be used.

0 comments:

Post a Comment