html fonts family code example

Example 1: font-style css

#example {
	font-style: normal; /* no specification, default */
  	font-style: italic; /* font is italic */
    font-style: oblique; /* font is italic, even if italic letters are not specified for font family */
    font-style: inherit; /* inherit property from parent */
	font-style: initial; /* default value */
}

Example 2: css font family

p{
    font-family:garamond,serif;
}

Example 3: css font family

example {
  font-family: Arial, Helvetica, sans-serif;
}

Example 4: font family css

font-family: "Comic Sans MS", cursive, sans-serif;

Example 5: css font families

p {
  font-family: "Times New Roman", Times, serif;
}

Example 6: css font family

.serif_font {
	font-family:"Times New Roman", serif;
}
.sans_serif_font {
	font-family:"Open Sans", sans;
}