CSS Practice – Questions & Answers
Beginner Level
Q16. What is external CSS?
CSS written in a separate file.
Q17. File extension of CSS?
.css
Q18. Property to change font?
font-family
Q19. Increase font size.
font-size: 20px;
Q20. Bold text?
font-weight: bold;
Intermediate Level
Q21. Difference padding vs margin?
Padding is inside, margin is outside.
Q22. What is overflow?
Controls content overflow.
Q23. Float property?
Aligns elements left or right.
Q24. Clear float?
clear: both;
Q25. Inline vs block?
Inline doesn’t start new line; block does.
Advanced Level
Q26. What is Grid?
2D layout system.
Q27. Two column grid.
display: grid; grid-template-columns: 1fr 1fr;
Q28. Position types?
static, relative, absolute, fixed, sticky
Q29. Sticky position?
Sticks on scroll.
Q30. Transition property?
transition: all 0.3s;
No comments:
Post a Comment