HTML CSS JavaScript Interview Questions
HTML CSS JavaScript Interview Questions
CSS
1. What does CSS stand for, and what is its primary purpose?
2. Explain the difference between inline, internal, and external CSS.
3. How do you include an external CSS file in an HTML document?
4. What is the "cascading" in CSS, and how does it work?
5. What is the box model in CSS, and what are its components?
6. How can you center an element horizontally and vertically using CSS?
7. What is the difference between margin and padding in CSS?
8. Explain the concept of specificity in CSS. How is it calculated?
9. What are pseudo-classes in CSS, and provide examples of their usage.
10. How do you create a hover effect using CSS?
11. What is the purpose of the "float" property in CSS, and when would you use it?
12. Explain the difference between "position: relative," "position: absolute," and "position:
fixed" in CSS.
13. What is the CSS "display" property, and how does it affect elements?
14. How can you create a responsive design using CSS?
15. What is the difference between "em" and "rem" units in CSS, and when would you use
each?
16. How do you create a CSS3 animation, and what are the keyframe rules?
17. What is the purpose of the "z-index" property in CSS, and how does it work?
18. How can you style a list with CSS, making custom bullet points or numbering?
19. What are CSS preprocessors, and why might you use one, like SASS or LESS?
20. How do you apply CSS styles to only specific elements with a particular class or ID?
21. What is a CSS selector, and what are some common types of selectors?
22. How can you handle browser-specific CSS properties and values?
23. What is a media query in CSS, and how does it help with responsive design?
24. Explain the purpose of the "box-sizing" property in CSS and its possible values.
25. What are the advantages of using flexbox for layout in CSS?
26. How do you create a sticky navigation bar using CSS?
27. What is the difference between "display: block" and "display: inline" elements in CSS?
28. How can you implement custom fonts in CSS on a web page?
29. What is the "overflow" property in CSS, and what values can it have?
30. Explain the concept of "cascading" in CSS, and how specificity and source order affect it.
JavaScript