Computer >> คอมพิวเตอร์ >  >> การเขียนโปรแกรม >> Javascript

การใช้คุณสมบัติฟอนต์แฟมิลี่ใน CSS


คุณสมบัติ font-family ใช้เพื่อเปลี่ยนหน้าตาของฟอนต์ ค่าที่เป็นไปได้อาจเป็นชื่อตระกูลแบบอักษรใดก็ได้

<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>