Which of the following is NOT a unit for font-size in CSS?
- cm
- em
- ex
- px
In CSS, font-size can be specified in various units, including em, ex, px, and cm. However, 'cm' is not a common unit for font-size. It's typically used for specifying dimensions of other elements, like margins or padding.
Loading...
Related Quiz
- What is the primary purpose of the float property in CSS?
- When specifying the width of an element in CSS, what does the unit vw stand for?
- What is the main purpose of media queries in CSS?
- Which CSS unit is relative to the root element's font size?
- You need to remove the default bullet points and apply a custom image as the bullet for each list item in an unordered list. How would you achieve this in CSS?