Open In App

CSS | Generic font-family collection

The font-family property is used to set the font of text in HTML document. The different font-family is used to create attractive web pages. There are many fonts available to choose from font pool like Google fonts, Adobe fonts, etc and require font API linking and customization. Generic font families mainly come under following categories which are listed below:

The detailed description of the generic font-family are listed below:



Followings are the description of some font family mentioned as examples in above generic font-families are listed below:

Example: This example use different types of font-family.




<!DOCTYPE html>
<html>
      
<head>
    <title>
        Generic Font Family
    </title>
      
    <style>
        body {
            color:green;
            font-size:20px;
        }
    </style>
</head>
  
<body>
    <p>GeeksforGeeks</p>
      
    <p style="font-family:verdana;">GeeksforGeeks</p>
    <p style="font-family:helvetica;">GeeksforGeeks</p>
    <p style="font-family:courier;">GeeksforGeeks</p>
    <p style="font-family:arial;">GeeksforGeeks</p>
    <p style="font-family:impact;">GeeksforGeeks</p>
    <p style="font-family:calibri;">GeeksforGeeks</p>
    <p style="font-family:consolas;">GeeksforGeeks</p>
    <p style="font-family:georgia;">GeeksforGeeks</p>
    <p style="font-family:garamond;">GeeksforGeeks</p>
    <p style="font-family:perpetua;">GeeksforGeeks</p>
    <p style="font-family:onyx;">GeeksforGeeks</p>
</body>
  
</html>                    

Output:


Article Tags :