Why didn't @font-face override previous practice of declaring a family of print?



  • Despite the CSS3 rules @font-facewhich would seem to address the lack of any prints on the client side, the definition of the old versions of HTML and CSS is still in use. The only reason for this day long type descriptions font-tamily: "PT Sans", "Arial", serif;Which I can assume is compatible with old browsers, but is there any other reason?



  • Reason https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face :

    The @font-face CSS at-rule allows authors to specify online fonts to display text on their web pages.

    @font-face CSS Indrug allows the author to provide online prints to display the text on their web pages.

    Reason https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-family :

    The font-family CSS descriptor allows authors to specify the font for an element.

    font-family CSS properties allow authors to indicate the element ' s type.

    The simple words for these elements are different tasks that they perform. For example, as stated on the question, @font-face Declaration print, font-family is already it. Use it. for a specific element.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2