Which CSS property is used to set the font family for an element?
- font-family
- font-size
- font-style
- font-weight
The font-family property in CSS is used to specify the font family for an element. This property allows you to define the typeface or font you want to use for text within that element, which can greatly affect the visual style of your website.
Loading...
Related Quiz
- How can you ensure that a CSS transition applies only when a specific property changes?
- What is the total width of an element (including padding and border) when the 'box-sizing' property is set to 'content-box'?
- How can you make the text of an element bold using CSS?
- What does the ::before pseudo-element do in CSS?
- How can you reverse the order of flex items?