CSS font-family property


Used to specify the font family used for text. Should be written as a comma-separated list; the browser will work its way through the list until it finds a font which is installed on the user's computer. For this reason it is always a good idea to include a generic font family at the end incase no other fonts are installed. Font names consisting of more than one word should be surrounded by quotes marks.


  • [font name]
  • [generic font family]



p {
  font-family: arial, "trebuchet ms", sans-serif;