What is the role of the src attribute inside the @font-face rule?
- Defines the font color
- Sets the font style
- Specifies the font size
- Specifies the font's source file location
Inside the @font-face rule, the "src" attribute is used to specify the font file's source location. This attribute tells the browser where to find and load the font file, allowing you to use custom fonts in your web design. It typically points to the location of a font file using a URL or local file path.
Loading...
Related Quiz
- Which pseudo-class in CSS is used to target elements based on their position in a parent element, like the first child?
- Which extension is used for SCSS files?
- The technique where a low-quality font is shown first and then replaced by a higher-quality font when it's loaded is known as ________.
- Animating properties like opacity and transform is considered more performant because they don't trigger ________ in most browsers.
- The ________ property in CSS specifies how overflows should be handled when the content overflows its block container.