In an @font-face rule, which descriptor specifies the font file location?

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

In an @font-face rule, which descriptor specifies the font file location?

Explanation:
The location of the font file in an @font-face rule is specified by the src descriptor. It tells the browser where to fetch the font and can include one or more sources (URLs) with optional format hints so the browser picks the best available file. The font-family descriptor simply names the font for use in CSS, while font-weight and font-style control how the font is applied (its weight and style). For example, you might list multiple sources like a modern WOFF2 file and a fallback WOFF file, ensuring broad browser support.

The location of the font file in an @font-face rule is specified by the src descriptor. It tells the browser where to fetch the font and can include one or more sources (URLs) with optional format hints so the browser picks the best available file. The font-family descriptor simply names the font for use in CSS, while font-weight and font-style control how the font is applied (its weight and style). For example, you might list multiple sources like a modern WOFF2 file and a fallback WOFF file, ensuring broad browser support.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy