HOME basics of HTML basics of PHP neobux onbux readbud templates
 
 

Fonts

The HTML <font> Tag Should NOT be Used

The <font> tag is deprecated in HTML 4, and removed from HTML5.

The World Wide Web Consortium (W3C) has removed the <font> tag from its recommendations.

In HTML 4, style sheets (CSS) should be used to define the layout and display properties for many HTML elements. 

The example below shows how the HTML could look by using the <font> tag:

<p>
<font size="5" face="arial" color="red">
This paragraph is in Arial, size 5, and in red text color.
</font>
</p>

<p>
<font size="3" face="verdana" color="blue">
This paragraph is in Arial, size 5, and in red text color.
</font>
</p>


The Right Way to Do It - With Styles

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

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

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

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.






powered by w3school

© 2011 d4download.orgfree, All Rights Reserved.

Design created by diljith d4download.orgfree.com veriosn 2.0

HOME basics of HTML basics of PHP neobux onbux readbud templates
Free Web Hosting