Computer >> Computer tutorials >  >> Programming >> Javascript

Set the font family with CSS


The font-family property is used to change the face of a font. Possible value could be any font family name.

<html>
   <head>
   </head>
   <body>
      <p style = "font-family:georgia,garamond,serif;">
         This text is rendered in either georgia, garamond, or the default serif font
         depending on which font you have at your system.
      </p>
   </body>
</html>