web friendly fonts code example

Example 1: css comic sans

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

Example 2: sans serif font family css

<style>
.sansserif {
font-family: Arial, Helvetica, sans-serif;
}
</style>

Example 3: Web Safe Fonts

Arial (sans-serif)
Verdana (sans-serif)
Helvetica (sans-serif)
Tahoma (sans-serif)
Trebuchet MS (sans-serif)
Times New Roman (serif)
Georgia (serif)
Garamond (serif)
Courier New (monospace)
Brush Script MT (cursive)

Example 4: css font families

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