The CSS3 @font-face rule requires you to specify which two properties?

Prepare for the uCertify CIW Advanced HTML5 and CSS3 Specialist Exam. Dive into essential topics with flashcards and multiple-choice questions. Enhance your understanding with hints and explanations for each question. Pass your exam confidently!

Multiple Choice

The CSS3 @font-face rule requires you to specify which two properties?

Explanation:
When you bring in a custom font with @font-face, you declare a font name and tell the browser where to load the font data. The font-family property gives the name you'll reference in CSS, and the src property provides the URL (and format) of the font file. Without a font-family, there’s no reference to use in your styles; without src, there’s no font data to load. Other details like font-weight or font-style can describe this font-face’s specific weight or style, but they aren’t required for the rule to work. The two essential properties are font-family and src.

When you bring in a custom font with @font-face, you declare a font name and tell the browser where to load the font data. The font-family property gives the name you'll reference in CSS, and the src property provides the URL (and format) of the font file. Without a font-family, there’s no reference to use in your styles; without src, there’s no font data to load. Other details like font-weight or font-style can describe this font-face’s specific weight or style, but they aren’t required for the rule to work. The two essential properties are font-family and src.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy