font-familyFont family's can be divided into two groups: serif and san serif. A san serif font does not include the small lines at the end of characters, while a serif font does include these small lines. When choosing which kind you prefer, remember that studies have shown that sans serif fonts are much easier to read on a computer monitor as opposed to a serif font. Value | Description | font-name | Any font name will work, but be sure you choose a popular font that is web safe. i.e. arial, verdana, serif, and san-serif. |
Code:h4 { font-family: sans-serif; }
h5 { font-family: serif; }
h6 { font-family: arial; } Display:This is a header with sans-serif font
This is a header with a serif font
This is a header with an arial font |