HTML Fonts
Controlling Fonts with Styles
Earlier available font tag is deprecated and for changing fonts we use font style as a css attributes. Consider the following style
<html> <body> <h1 style="font-family:verdana">font is verdana</h1> <p style="font-family:courier">font is courier</p> </body> </html>
Font Size
<html> <body> <h1 style="font-size:18px;">A heading</h1> <p style="font-size:24px;">A paragraph</p> </body> </html>
Font Color
<html> <body> <p style="color:red">Text in red</p> </body> </html>
Font, Font Size, and Font Color
<html> <head> <title>fonts</title> </head> <body> <p style="font-size:16px; font-family:Verdana; color:#093"> demonstration of iframes</p> </body> </html>