Quote:
Originally Posted by http://www.w3schools.com/HTML/html_fonts.asp
The <font> Tag Should NOT be Used
The <font> tag is deprecated in the latest versions of HTML (HTML 4 and XHTML).
The World Wide Web Consortium (W3C) has removed the <font> tag from its recommendations. In future versions of HTML, style sheets (CSS) will be used to define the layout and display properties of HTML elements.
The Right Way to Do It - With Styles
|
So, as stated, use styles. An example of inline might be
Code:
echo "<div style=\"color: red;\">$variable</div>";
Or if you have it linked to a style sheet, you could use
Code:
echo "<div id=\"myStyleName\">$variable</div>";