Despite the appearance in CSS3 of the @font-face rule, which, it would seem, should completely solve the problem of the absence of any fonts on the client side, the definition of the font in the old versions of HTML and CSS is still used. The only reason for the existence of long font-tamily: "PT Sans", "Arial", serif; descriptions to this day font-tamily: "PT Sans", "Arial", serif; , which I can assume is compatible with old browsers, but are there any other reasons?

    1 answer 1

    Reason times :

    At-rule CSS @ font-face

    The @ font-face CSS over-rule allows the author to specify online fonts for displaying text on their web pages.

    Reason two :

    CSS descriptor.

    The font-family CSS property allows authors to specify a font for an element.

    Simple words for these elements are different tasks that they perform. For example, as stated in the question, @ font-face declares a font, and the font-family already uses it directly for a specific element.