css set font family code example
Example 1: css font face
@font-face {
// Defining what the font will be called
font-family: thisSpecialFont;
// Linking to the font file
src: url(linkToFontFile.woff);
}
body {
font-family: thisSpecialFont;
}
Example 2: css font family
p{
font-family:garamond,serif;
}
Example 3: fonmt family css
font-family: "Comic Sans MS", cursive, sans-serif;
Example 4: css font family
.serif_font {
font-family:"Times New Roman", serif;
}
.sans_serif_font {
font-family:"Open Sans", sans;
}