Friday, December 9, 2011

6c. HTML Fonts



Set the font of text
This example demonstrates how to set the font of a text.

<h1 style="font-family:verdana">This is a heading</h1>
<p style="font-family:courier">This is a paragraph.</p>
 

Set the font size of text
This example demonstrates how to set the font size of a text.
<h1 style="font-size:200%">This is a heading</h1>
<p style="font-size:110%">This is a paragraph.</p>

Set the font color of text
This example demonstrates how to set the color of a text.
<h1 style="color:blue">This is a heading</h1>
<p style="color:red">This is a paragraph.</p>

Set the font, font size, and font color of text
This example demonstrates how to set the font, font size, and font color of a text.
<p style="font-family:verdana;font-size:110%;color:green">
This is a paragraph with some text in it. This is a paragraph with some text in it. This is a paragraph with some text in it. This is a paragraph with some text in it.
</p>

No comments:

Post a Comment