Create a Website
CSS Tutorial
FREE Domain!
Any web hosting you subscribe with DotEasy will get you a FREE domain name registration.
PLUS you get:
  • FREE Website Builder
  • FREE Blog
  • FREE Forum
  • FREE Photo Album
  • FREE Email Accounts
Get your FREE domain name today!
Home > CSS Tutorial
SSD Web Hosting with FREE Domain

The font property can set the style, weight, variant, size, line height and font.


There are 2 possible values for the font-family property:

If you set a family name, it is best to also add the generic family at the end. As this is a prioritized list, if the user does not have the specific font name, it will use the same generic family.

For example,

The Code

font-family: Verdana, sans-serif;

Font Size

There are many possible font units for the font size property:

Font Weight

You can control the weight of text in an element with the font-weight property. Possible values are:

Enjoy this tutorial?

1. Link to this page(copy/paste into your own website or blog):
2. Add this page to your favorite social bookmarks sites:
3. Add this page as your favorites. (Press Ctrl+D)