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?

When you declare a custom font with @font-face, you must specify a name for the font and where to load the font from. The font-family value assigns the name you’ll use in CSS to apply the font, and the src value points to the font file (and its format) so the browser can fetch it. For example, you might declare a font named "MyCustom" and set its source to a WOFF2 file. Then you can use font-family: "MyCustom" in your styles, with fallbacks if needed.

Optional descriptors like font-weight and font-style can define specific variants of that font, such as bold or italic, but they aren’t required for the @font-face rule to work. If you omit them, the default is normal weight and normal style, and you can supply additional font-face rules for other weights or styles as needed.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy