Pages

Thursday, August 11, 2011

10-HTML Fonts


10-HTML 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:

Example

<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>

Try it yourself »



No comments:

Post a Comment

Powered By Blogger