Font styling can be done in three places; A seperate CSS file (recommended), in a style section in the head, and inline inside the tag. Whichever styling is set closest to the text will be the styling that is used. While you can set each property on its own line, font does supports a shorthead declaration: "font-style font-variant font-weight font-size line-height font-family". Size and Family values are required. If others are missing the default value will be used.


Notice that no comma is between the size and family. Family choices are seperated by a comma. The line is ended with a semi-colon.

        p{font:12px arial,sans-sersif;}

The font styling can be put inline.

        p { font:12px arial,sans-sersif; }