Note: In the below source code replace all the

<xp> tags with <xmp>

Source


<html> <head> <title>Fonts Demo</title> </head> <body> <table border="1" cellpadding="20"> <caption>Font Size Examples</caption> <tr> <th>Code</th> <th>Result</th> </tr> <tr> <td><xp><font size="2">Size 2</font></xp></td> <td><font size="2">Size 2</font></td> </tr> <tr> <td><xp><font size="5">Size 5</font></xp></td> <td><font size="5">Size 5</font></td> </tr> <tr> <td><xp><font size="10">Size 10</font></xp></td> <td><font size="10">Size 10</font></td> </tr> </table> <br/><br/> <table border="1" cellpadding="20"> <caption>Font Color Examples</caption> <tr> <th>Code</th> <th>Result</th> </tr> <tr> <td><xp><font color="Red">Red Font</font></xp></td> <td><font color="Red">Red Font</font></td> </tr> <tr> <td><xp><font color="Green">Green Font</font></xp></td> <td><font color="Green">Green Font</font></td> </tr> <tr> <td><xp><font color="Blue">Blue Font</font></xp></td> <td><font color="Blue">Blue Font</font></td> </tr> </table> <br/><br/> <table border="1" cellpadding="20"> <caption>Font Face Examples</caption> <tr> <th>Code</th> <th>Result</th> </tr> <tr> <td><xp><font size="10" face="Verdana">Verdana Font</font></xp></td> <td><font size="10" face="Verdana">Verdana Font</font></td> </tr> <tr> <td><xp><font size="10" face="Arial">Arial Font</font></xp></td> <td><font size="10" face="Arial">Arial Font</font></td> </tr> <tr> <td><xp><font size="10" face="Times New Roman">Times New Roman Font</font></xp></td> <td><font size="10" face="Times New Roman">Times New Roman Font</font></td> </tr> </table> </body> </html>

Output


Font Size Examples
Code Result
<font size="2">Size 2</font> Size 2
<font size="5">Size 5</font> Size 5
<font size="10">Size 10</font> Size 10


Font Color Examples
Code Result
<font color="Red">Red Font</font> Red Font
<font color="Green">Green Font</font> Green Font
<font color="Blue">Blue Font</font> Blue Font


Font Face Examples
Code Result
<font size="10" face="Verdana">Verdana Font</font> Verdana Font
<font size="10" face="Arial">Arial Font</font> Arial Font
<font size="10" face="Times New Roman">Times New Roman Font</font> Times New Roman Font