What is the significance of the font-display CSS property when using custom fonts?
- Controls how a custom font is displayed during loading
- Defines the font size for different screen resolutions
- Sets the font style for italicizing
- Specifies the color of the font during rendering
The font-display property in CSS is crucial when using custom fonts as it determines how the font is displayed during the loading process. It allows developers to control the fallback behavior and enhance the user experience, especially when the custom font is still loading.
Loading...
Related Quiz
- In SASS/SCSS, how do you define a mixin?
- What is the difference between opacity and alpha transparency in CSS color definitions?
- The ________ CSS selector is used to select the first paragraph inside a container.
- What does the text-transform property do in CSS?
- You are tasked with redesigning a website to make it more maintainable. The current CSS is highly specific and difficult to override. Which CSS methodology would you choose to refactor the CSS for better maintainability and scalability?