Css-language-question

Level: Beginner

1. What does CSS stand for?
2. How do you include CSS in your HTML file?
3. What is the basic syntax for writing CSS rules?
4. How do you select an element by its ID in CSS?
5. How do you select elements by their class in CSS?
6. What is the difference between padding and margin in CSS?
7. How do you change the background color of an element in CSS?
8. How do you center an element horizontally in CSS?
9. What is the default display property of a <div> element in CSS?
10. How do you make text bold in CSS?
11. How do you make text italic in CSS?
12. What is the difference between font-size and line-height in CSS?
13. How do you create a border around an element in CSS?
14. How do you remove the underline from a hyperlink in CSS?
15. How do you set the height and width of an element in CSS?
16. How do you align text to the center of a <div> in CSS?
17. What is a pseudo-class in CSS? Give an example.
18. How do you add comments in CSS?
19. How do you specify multiple CSS properties for an element in one declaration?
20. What is the box-sizing property in CSS used for?
21. How do you create a horizontal navigation bar using CSS?
22. What is the difference between inline and block elements in CSS?
23. How do you set the opacity of an element in CSS?
24. How do you apply a hover effect to an element in CSS?
25. How do you make text lowercase or uppercase in CSS?
26. How do you set the position of an element to be fixed in CSS?
27. How do you create a simple CSS animation?
28. How do you include custom fonts in your CSS?
29. How do you create a responsive design using CSS media queries?
30. What are CSS selectors and how are they used?
31. How do you create a gradient background in CSS?
32. What is the difference between padding and margin?
33. How do you float elements in CSS?
34. How do you make a div element round-shaped in CSS?
35. How do you apply different styles to odd and even rows in a table using CSS?
36. How do you include a CSS file into another CSS file?
37. How do you align text vertically in CSS?
38. How do you hide an element in CSS?
39. How do you make a navigation bar sticky in CSS?
40. How do you create a drop-down menu in CSS?
41. How do you set a background image for an element in CSS?
42. How do you specify the font family for an element in CSS?
43. How do you create a multi-column layout in CSS?
44. How do you set the text color of an element in CSS?
45. How do you apply different styles to visited links in CSS?
46. How do you create a CSS grid layout?
47. How do you create a shadow effect for text in CSS?
48. How do you set the opacity of a background color in CSS?
49. How do you align elements side by side in CSS?
50. How do you create a responsive image gallery using CSS?

Intermediate Level: View

Advanced Level: View