uCertify CIW – Advanced HTML5 & CSS3 Specialist Practice Test

Session length

1 / 20

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

font-weight and src

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.

font-family and font-style

font-family and font-weight

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy