CSS Interview Questions & Answers

CSS Interview Online Test

Technical interview questions and answers are crucial when preparing for a CSS Interview because companies expect candidates to understand selectors, box model, layouts, responsive design, animations, and modern styling techniques. CSS is one of the most important skills for frontend development, and interviews often include both theoretical and practical questions. Companies such as TCS, Wipro, Infosys, Cognizant, and Accenture frequently ask CSS questions to evaluate a candidate’s ability to structure and style web pages professionally. This guide includes the most commonly asked CSS interview questions with easy explanations, helping freshers, students, and job seekers build a strong foundation. Preparing these questions will boost your confidence for frontend developer roles, UI/UX interviews, and campus placements.

Web designers should strengthen their frontend expertise by mastering HTML markup  and JavaScript interactivity  for responsive design 

1. What is CSS?

Show Answer

2. What are Cascading Style Sheets?

Show Answer

3. What is external Style Sheet? How to link?

Show Answer

4. What are Style Sheets?

Show Answer

5. How do I have a background image that isn't tiled?

Show Answer

6. Why do style sheets exist?

Show Answer

7. What is inline style? How to link?

Show Answer

8. How do I combine multiple sheets into one?

Show Answer

9. Which set of definitions, HTML attributes or CSS properties, take precedence?

Show Answer

10. How do I eliminate the blue border around linked images?

Show Answer

11. Why call the subtended angle a "pixel", instead of something else (e.g. "subangle")?

Show Answer

12. 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?

Show Answer

13. Can CSS be used with other than HTML documents?

Show Answer

14. Can Style Sheets and HTML stylistic elements be used in the same document?

Show Answer

15. How do I design for backward compatibility using Style Sheets?

Show Answer

16. Why use Style Sheets?

Show Answer

17. What is CSS rule 'at-rule'?

Show Answer

18. What is selector?

Show Answer

19. What is CSS declaration?

Show Answer

20. What is cascade?

Show Answer

21. Are Style Sheets case sensitive?

Show Answer

22. How do I have a non-tiling (non-repeating) background image?

Show Answer

23. CSS is clearly very useful for separating style from content. But apparently people tend to have problems when using it for layouts. Would you say this is because people have not yet understood how to properly do layout in CSS, or is it CSS that is lacking in this area? What can be done to improve the situation? --- Would the web benefit from HTML and CSS being complemented with some kind of "layout language"?

Show Answer

24. What is property?

Show Answer

25. What can be done with style sheets that can not be accomplished with regular HTML?

Show Answer

26. How do I write my style sheet so that it gracefully cascades with user's personal sheet ?

Show Answer

27. Is there anything that CAN'T be replaced by Style Sheets?

Show Answer

28. Can I include comments in my Style Sheet?

Show Answer

29. Which characters can CSS-names contain?

Show Answer

30. What is initial value?

Show Answer

31. How frustrating is it to write a specification knowing that you're at the browser vendors' mercy?

Show Answer

32. How far can CSS be taken beyond the web page--that is, have generalized or non-web specific features for such things as page formatting or type setting?

Show Answer

33. How To Style Forms?

Show Answer

34. Can I attach more than one declaration to a selector?

Show Answer

35. What is the percentage value in 'font-size' relative to?

Show Answer

36. Must I quote property values?

Show Answer

37. Do any WYSIWYG editors support the creation of Style Sheets? Any text-based HTML editors?

Show Answer

38. Do URL's have quotes or not?

Show Answer

39. Document Style Semantics and Specification Language (DSSSL)?

Show Answer

40. What is Extensible Stylesheet Language (XSL)?

Show Answer

41. What is a Database?

Show Answer

42. What is DBMS?

Show Answer

43. What is a Catalog?

Show Answer

44. What is data ware housing & OLAP?

Show Answer

45. What is real time database technology?

Show Answer

46. What is program-data independence?

Show Answer

47. What is ORDBMS?

Show Answer

48. What is program-operation independence?

Show Answer

49. What is a view?

Show Answer

50. What is OLTP?

Show Answer

51. What is the job of DBA?

Show Answer

52. Who are db designer?

Show Answer

53. What are different types of end users?

Show Answer

54. What are the advantages of using a dbms?

Show Answer

55. What are the disadvantages of using a dbms?

Show Answer

56. What is a data model?

Show Answer

57. What are different categories of data models?

Show Answer

58. What is schema?

Show Answer

59. What are types of schema?

Show Answer

60. What is Data independency?

Show Answer

61. What are different DBMS languages?

Show Answer

62. What are different types of DBMS?

Show Answer

63. What is an entity?

Show Answer

64. What are attributes?

Show Answer

65. What are diff. types of attributes?

Show Answer

66. What is domain value or value set of an attribute?

Show Answer

67. What is degree of a relationship?

Show Answer

68. What is recursive relationship?

Show Answer

69. What are relationship constraints?

Show Answer

70. What is Cardinality ratio?

Show Answer

71. What is a Participation constraint?

Show Answer

72. What is a weak entity types?

Show Answer

73. What is an ER Diagram?

Show Answer

74. What is specialization?

Show Answer

75. What is generalization?

Show Answer

76. What are constraints on generalization and specialization?

Show Answer

77. What is a ternary relationship?

Show Answer

78. What is aggregation and association?

Show Answer

79. What is RAID Technology?

Show Answer

80. What is Hashing technique?

Show Answer

81. What are different types of relational constraints?

Show Answer

82. What is difference between a super key, a key, a candidate key and a primary key?

Show Answer

83. What is a foreign key?

Show Answer

84. What is a transaction?

Show Answer

85. What are the properties of transaction?

Show Answer

86. What are the basic data base operations?

Show Answer

87. What are the disadvantages of not controlling concurrency?

Show Answer

88. What are serial, non serial?

Show Answer

89. What are conflict serializable schedules?

Show Answer

90. What is result equivalent?

Show Answer

91. What are conflict equivalent schedules?

Show Answer

92. What is a conflict serializable schedule?

Show Answer

93. What is view equivalence?

Show Answer

94. What is view serializable?

Show Answer

95. What are the various methods of controlling concurrency?

Show Answer

96. What is a lock?

Show Answer

97. What are various types of locking techniques?

Show Answer

98. What is a binary lock?

Show Answer

99. What is shared or exclusive lock?

Show Answer

100. Explain two phase locking?

Show Answer

101. What are different types of two phase lockings (2pl)?

Show Answer

102. What is a deadlock?

Show Answer

103. What are triggers?

Show Answer
Questions and Answers for Competitive Exams Various Entrance Test