1. Which property is used to change the background color?
2. What is the correct HTML for referring to an external style sheet?
3. Who maintains CSS?
4. When does the link state a:hover occur?
5. Which CSS property controls the text size?
6. The outline property is used to control:
7. Which is the correct CSS syntax?
8. Is :focus a pseudo-class?
9. The ..................... specifies whether a border should be solid, dashed line, doted line, double line, groove etc.
10. The ____________ property allows to specify how much space appear between the content of an element and it's border.
11. What is the difference between margin and padding?
12. Which of the syntax is correct?
13. The text-decoration are:
14. What can CSS selectors look for?
15. Which of the following will apply a hex color of #445566 to each active link?
16. What is a CSS rule?
17. What is the correct CSS syntax for making all the <p> elements bold?
18. How do you make a list that lists its items with squares?
19. Multiple font faces are separated by __________
20. Which of the following has the highest priority?
21. The ___________ property allows you to control the shape or style of bullet point in the case of unordered lists, and the style of numbering characters in ordered list.
22. The following syntax to set margin around a paragraph will make- p{margin:10px 2%}
23. Which of the following is the correct syntax for a pseudo-class?
24. Which of the following is true for the max-width property?
25. Which property is used to specify typefaces ?
26. Which of the following specifies what the style actually does?
27. The Hex color #0000FF is equal to:
28. Pseudo-classes are used to represent _______.
29. Which property indicates whether a cell without any content should have a border displayed?
30. When styling links, a:active must come _____ a:hover.
31. What is absolute positioning?
32. Which of the following properties is MOST likely to increase the amount of time it takes the browser to repaint?
33. Which of the following is correct CSS syntax for using font property?
34. Which value preserves the white spaces as specified in the content?
35. In the following line; H1 { color:blue } What is the part within the curly braces?
36. What colors are displayed when using six identical hexadecimal numbers to define color?
37. In CSS tables, the possible values for the caption-side property can have the following values.
38. position: absolute means...
39. Which property defines the distance between the nearest border edges of a marker and its associated principal box in an unordered list?
40. What is the correct CSS syntax
41. Consider the following font definition: font-weight:normal What is the other way of getting the same result?
42. The color in three digit RGB notation is #fb0. What will be its equivalent six digit color code?
43. Which of the following value of the white-space property will set the value of white-space-collapse to “preserve” and value of the text-wrap to “none”?
44. We write single________ before the pseudo-class property
45. Which statement is used in CSS to remove table borders?
46. What will happen if the following style declaration is applied to an element? p { margin: 3em 2em }
47. What will be the output of the following rule? em { color: rgba(0,0,255,1) }
48. Which option does not exist in media groups available in CSS3?
49. Which statement is true about z-index in CSS3?
50. The valid examples of ID selectors is/are
51. Which is NOT a valid media type for media query?
52. What is true of block and inline elements? (Alternative: Which statement about block and inline elements is true?)
53. In the following media query example, what conditions are being targeted?@media (min-width: 1024px), screen and (orientation: landscape) { … }
54. Which of the following is not a valid color value? (Alternative: Which choice is not a valid color value?)
55. What selector and property would you use to scale an element to be 50% smaller on hover?
56. Which CSS rule takes precedence over the others listed?
57. Which choice is not a valid transition?
58. When using a font stack to declare the font family, in what order should the values appear?
CSS MCQs | Topic-wise