css

Interview Questions and Answers

CSS

Question:
What are inline, block, parent, children, replaced and floating elements?
Answer:

Inline
elements which do not have line breaks. Can occur in block elements or other inline elements, cannot contain block elements.
Inline elements in HTML 3.2; EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, TT, I, B, U, STRIKE, BIG, SMALL, SUB, SUP, A, IMG, APPLET, FONT, BASEFONT, BR, SCRIPT, MAP, INPUT, SELECT, TEXTAREA.
Inline elements in HTML 4.0; EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ABBR, ACRONYM, TT, I, B, BIG, SMALL, SUB, SUP, A, IMG, OBJECT, BR, SCRIPT, MAP, Q, SPAN, BDO, INPUT, SELECT, TEXTAREA, LABEL, BUTTON, (INS, DEL).
Inline elements in HTML 4.0 Transitional; EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ABBR, ACRONYM, TT, I, B, U, S, STRIKE, BIG, SMALL, SUB, SUP, A, IMG, APPLET, OBJECT, FONT, BASEFONT, BR, SCRIPT, MAP, Q, SPAN, BDO, IFRAME, INPUT, SELECT, TEXTAREA, LABEL, BUTTON, (INS, DEL).
Block
elements which do have line breaks. May occur in other block elements, cannot occur in inline elements, may contain both block and inline elements.
Block elements in HTML 3.2; H1, H2, H3, H4, H5, H6, ADDRESS, P, DL, DT, DD, UL, OL, DIR, MENU, LI, DIV, CENTER, BLOCKQUOTE, PRE, HR, ISINDEX, TABLE, FORM.
Block elements in HTML 4.0; P, H1, H2, H3, H4, H5, H6, UL, OL, PRE, DL, DIV, NOSCRIPT, BLOCKQUOTE, FORM, HR, TABLE, FIELDSET, ADDRESS, (INS, DEL).
Block elements in HTML 4.0 Transitional; P, H1, H2, H3, H4, H5, H6, UL, OL, DIR, MENU, PRE, DL, DIV, CENTER, NOSCRIPT, NOFRAMES, BLOCKQUOTE, FORM, ISINDEX, HR, TABLE, FIELDSET, ADDRESS, (INS, DEL).
Parents and children
elements which either contain (parents) or are in the content of (children) other elements, e.g.

texttexttext

. P is a parent of STRONG. STRONG is a child of P. If not specified otherwise, children will inherit parent

--- >>>

CSS - Questions
1. How do I center block-elements with CSS1?
Answer
2. How does a simple CSS style rule look ?
Answer
3. Write different ways of styles applied in HTML file?
Answer
4. What main useful features of CSS3?
Answer
5. How to customize your text boxes.
Answer
6. How do I make my div 100% height?
Answer
7. What is property?
Answer
8. How do I combine multiple sheets into one?
Answer
9. What is one auto margin?
Answer
10. Describe ID selector?
Answer
11. Explain in brief about the term CSS.
Answer
12. List various font attributes used in style sheet.
Answer
13. How do I have a fixed non scrolling background image?
Answer
14. What is attribute selector?
Answer
15. How do I place text over an image?
Answer
16. what is Fixed Background?
Answer
17. What are Style Sheets?
Answer
18. Document Style Semantics and Specification Language "DSSSL"?
Answer
19. What is CSS declaration?
Answer
20. What`s the difference between ID and class selector?
Answer
21. What is grouping?
Answer
22. Why do style sheets exist?
Answer
23. When is auto different from 0 in margin properties?
Answer
24. What is a class selector?
Answer
25. Are you pro or against Flash?
Answer
26. Describe about float element.
Answer
27. What are style sheet properties?
Answer
28. What are Cascading Style Sheets?
Answer
29. What are inline, block, parent, children, replaced and floating elements?
Answer
30. Which set of definitions, HTML attributes or CSS properties, take precedence?
Answer
31. What is selector?
Answer
32. What is cascade?
Answer
33. What is parent child selector?
Answer
34. What is inline style? How to link?
Answer
35. What is CSS rule ruleset?
Answer
36. Why does Netscape lose my styles ?
Answer
37. Which font names are available on all platforms ?
Answer
38. What is two auto margins?
Answer
39. What is CSS rule at rule?
Answer
40. How do I write my style sheet so that it gracefully cascades with users personal sheet ?
Answer
41. What are pseudo elements?
Answer
42. What is the use @keyframes in CSS3?
Answer
43. Explain inline, embedded and external style sheets.
Answer
44. Why does my content shift to the left on some pages in FF?
Answer
45. What is embedded style? How to link?
Answer
46. Why use Style Sheets?
Answer
47. How do you include comments in CSS?
Answer
48. How do I have a background image that isnt tiled?
Answer
49. Why call the subtended angle a pixel, instead of something else ?
Answer
50. How can I specify two different sets of link colors?
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