Pages

Jun 21, 2011

CSS/HTML Interview Questions

CSS/HTML Interview Questions


1. What CSS means? In addition, how it works?
CSS:
How it works:








2. Which of them should work and which of them do not work to center an object horizontally (also implement the theoretical concept), explain?
(Put cross or right, left side and explain it right side)
a) Take a wrapper and style it to {margin: 0 auto; }. Explain:


b) #DIV {top: center; left:center; }. Explain:


c) #DIV {top: 50%; left:50%; right: -200px; bottom: -250px; height:500px ;weight:400}. Explain:




d) #DIV {top: 50%; left:50% }. Explain:




e) Take a wrapper and style it to {text-align:center;}. Explain:




3. How to align an object to vertically center?


4. How overlap a Flash Object?






5. How to create CSS Menu (one item would be enough)? Give an Example with HTML + CSS.




6. What do you understand by the term of selectors? Give some example.


7. How many types of styles sheets are there?




8. What do you know about Reset CSS?


9. Suppose you have an ID named “id”, class named “class”, h1 and h2 tags; now write a simple css rule for all of them at the same time.








10. What is the default CSS position for every object and the inherit does work?


11. Why specification is need in CSS Terms?


12. How to use a transparent image?






13. What float does? And What does ‘Clear’ have to do with it, explain.












14. Which cannot be negative? Which one does the outer spacing?


15. What CSS fixed position means?


16. What z-index does?


17. Write some CSS pseudo codes? And give some example of it.




18. Is CSS case sensitive?
a) Yes
b) No
19. How to use a Fixed and Repeated background using CSS?










20. What inline,block,none attribute does in the display parameter ?
Inline:
Block:
None:
21. What do you understand by the term of XHTML and HTML?
XHTML:
HTML:

No comments:

Post a Comment