css

Interview Questions and Answers

CSS

Question:
How does a simple CSS style rule look ?
Answer:

P { font-family: serif; font-size: 1.2em; }
Here we see a rule with a selector P that has been given two style declarations, i.e. two property:value pairs.
font-family and font-size are properties of the content of element P , and these properties are assigned the values of serif and 1.2em respectively.
A colon : is the value assignment symbol in CSS, so using an equal sign instead is an error and is required by the CSS specification to be ignored. Any browser that appears to honor this style is behaving improperly.
For length values a unit is always needed and there shall never be any space between a number and its length unit.
A value given as e.g. 1.2 em is an error and is required by the CSS specification to be ignored. Any browser that appears to honor this style is behaving improperly.
A semicolon between declarations is required but its also good rule of thumb to put a even after the last declaration.
Finally, curly braces {?} group one or more declarations into a final CSS rule.

--- >>>

CSS - Questions
1. What is CSS declaration?
Answer
2. What is latest version, CSS4 or CSS3?
Answer
3. What`s the difference between ID and class selector?
Answer
4. Describe pseudo classes in CSS.
Answer
5. What is parent child selector?
Answer
6. How do I eliminate the blue border around linked images?
Answer
7. Can CSS be used with other than HTML documents?
Answer
8. What are pseudo classes?
Answer
9. Which font names are available on all platforms ?
Answer
10. What is two auto margins?
Answer
11. List various font attributes used in style sheet.
Answer
12. Explain inline, embedded and external style sheets.
Answer
13. What are Cascading Style Sheets?
Answer
14. How do I center block-elements with CSS1?
Answer
15. What are inline, block, parent, children, replaced and floating elements?
Answer
16. How do I have a fixed non scrolling background image?
Answer
17. How can I specify background images?
Answer
18. What is attribute selector?
Answer
19. How to customize your text boxes.
Answer
20. How do I place text over an image?
Answer
21. What is a Style Sheet?
Answer
22. What is embedded style? How to link?
Answer
23. what is Fixed Background?
Answer
24. What are Style Sheets?
Answer
25. Which set of definitions, HTML attributes or CSS properties, take precedence?
Answer
26. Why was the decision made to make padding apply outside of the width of a box, rather than inside, which would seem to make more sense?
Answer
27. What is Extensible Stylesheet Language "XSL"?
Answer
28. Document Style Semantics and Specification Language "DSSSL"?
Answer
29. Why use Style Sheets?
Answer
30. What does the Cascading in Cascading Style Sheets mean?
Answer
31. What is selector?
Answer
32. What is cascade?
Answer
33. Are Style Sheets case sensitive?
Answer
34. What is property?
Answer
35. What is grouping?
Answer
36. How do you include comments in CSS?
Answer
37. What are the various style sheets?
Answer
38. What is inline style? How to link?
Answer
39. Why do style sheets exist?
Answer
40. How do I have a background image that isnt tiled?
Answer
41. What is CSS rule ruleset?
Answer
42. What is external Style Sheet? How to link?
Answer
43. Why call the subtended angle a pixel, instead of something else ?
Answer
44. Can Style Sheets and HTML stylistic elements be used in the same document?
Answer
45. Why is it my hover declaration for links does not work ?
Answer
46. Why does Netscape lose my styles ?
Answer
47. How can I specify two different sets of link colors?
Answer
48. How do you override the underlining of hyperlinks?
Answer
49. How does a simple CSS style rule look ?
Answer
50. How do I move the list bullet to the left and right?
Answer
General Knowledge Quiz
3001 Bizarre Facts
Dictionary
Elementary English Grammar Test
Standard English Grammar Test
Advanced English Grammar Test
Daily English Quiz
English Test
Grammar Examination
ESL / EFL Test
Grammar Test
Antonyms
Synonyms
Homonyms
Vocabulary Examination
Word Analogy
Vocabulary Flashcards
Idioms
Idioms Quiz
Quantitative Aptitude Test
iQ Quiz Game
Verbal Reasoning Quiz - Mind Game
English Question Answer
Vocabulary Game 1
Vocabulary Game 2
Scramble Word Game
Common Mistakes
Confusing Words
Basic English Usage
English Grammar
Prepositions
English Phrases
Learn English
Word Game
Interview Questions and Answers
Educational Quiz Games