all html fonts code example
Example 1: css comic sans
font-family: "Comic Sans MS", "Comic Sans", cursive;
Example 2: use font on website html
<style type="text/css">
@font-face {
font-family: "My Custom Font";
src: url(http://www.example.org/mycustomfont.ttf) format("truetype");
}
p.customfont {
font-family: "My Custom Font", Verdana, Tahoma;
}
</style>
<p class="customfont">Hello world!</p>
Example 3: css font family
p{
font-family:garamond,serif;
}
Example 4: font-family css
font-family: "Times New Roman", Georgia, serif;