CSS Tutorial

CSS Style

CSS Layout Style

CSS Float Style

CSS Reference

CSS font property




The CSS font property write to shorthand style property. you can set multiple font related property like font-size, font-style, font-family, font-varient, font-weight, etc...


Property Values


Properties Value Description
Syntax font:value;
value   font-size
  font-family
  font-varient
  font-weight
  font-style
Allow to All elements
Inherited Yes

Example-Code:

<p style="font:14px Arial, Helvetica, sans-serif">This example is
font property to allow the write an shorthand property. </p>
Online Try This Code Your Self....   »

Example-Result:

This example is font property to allow the write an shorthand property