different font in html code example
Example 1: 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 2: font tag html
Not Supported in HTML 5 | Support till HTML 4
<font color="red" face="Verdana, Geneva, sans-serif" size="+1">
Your formatted text goes here
</font>
Example 3: how to choose font in html
font-family: