- Tags: Text
- Categories: CSS Reference, CSS Resources, Reference
Quick Reference
The following are lists of good, web-safe font families for HTML/CSS (there are others less reliable). The browser will try each member of the family in order until reaching the generic, which will always work.
In the example below, we’d prefer the site page use Times New Roman, but if that’s not available to the browser, then the browser should use Times, and finally the default serif font if the others cannot be found.
p {
font-family: "Times New Roman", Times, serif;
}
Font Families
Serif Fonts
font-family | Example Text |
---|---|
Garamond, serif | This is a headingThis is a paragraph. |
Georgia, serif | This is a headingThis is a paragraph |
"Palatino Linotype", "Book Antiqua", Palatino, serif | This is a headingThis is a paragraph |
"Times New Roman", Times, serif | This is a headingThis is a paragraph |
Sans-Serif Fonts
font-family | Example Text |
---|---|
Arial, Helvetica, sans-serif | This is a headingThis is a paragraph |
"Arial Black", Gadget, sans-serif | This is a headingThis is a paragraph |
"Comic Sans MS", cursive, sans-serif | This is a headingThis is a paragraph |
Impact, Charcoal, sans-serif | This is a headingThis is a paragraph |
Tahoma, Geneva, sans-serif | This is a headingThis is a paragraph |
"Trebuchet MS", Helvetica, sans-serif | This is a headingThis is a paragraph |
Verdana, Geneva, sans-serif | This is a headingThis is a paragraph |
Monospace Fonts
font-family | Example Text |
---|---|
"Courier New", Courier, monospace | This is a headingThis is a paragraph |
"Lucida Console", Monaco, monospace | This is a headingThis is a paragraph |
Cursive Fonts
font-family | Example Text |
---|---|
"Brush Script MT", cursive | This is a headingThis is a paragraph |
We’d like to acknowledge that we learned a great deal of our coding from W3Schools and TutorialsPoint, borrowing heavily from their teaching process and excellent code examples. We highly recommend both sites to deepen your experience, and further your coding journey. We’re just hitting the basics here at 1SMARTchicken.
Why 1SMARTchicken?
See More →
Thanks for your support!
CSS Books
All are affiliate links. Thank you for your support!
CSS NOTES:
- The “inherit”, “initial” and “unset” keywords can be used with any CSS property to set its value
- In CSS there are many ways to express a color value in a property
Feedback
If you see an error on the page or the code itself is incorrect or incomplete, or just plain wrong, please let us know. We’re always learning. NOTE: we do not sell your information and will not send you spam emails.