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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *