How can you specify a fallback font if the primary font fails to load?
- Add the "secondary" attribute to the "font" property
- Define a secondary font using the "secondary-font" property
- Use the "fallback-font" property
- Utilize the "font-family" property with multiple font options
To specify a fallback font in case the primary font fails to load, you can use the "font-family" property with multiple font options. You list the preferred font first and then provide alternatives separated by commas. If the primary font is unavailable, the browser will attempt to use the next font in the list until it finds a suitable option or defaults to a system font.
Loading...
Related Quiz
- Which property-value combination will make text both italicized and bold?
- In the context of CSS masking, what does the mask-composite property do?
- You are tasked with ensuring that all hyperlinks have no underlines but should be underlined when hovered over. How would you implement this using CSS?
- What is the primary goal of the OOCSS (Object-Oriented CSS) methodology?
- In the context of a CSS preprocessor like SASS, what does "nested rules" mean?