Hi,
Formerly, I would change text color on the fly in a simple though clumsy way like this and it passed W3 validation:
Now if I change the DOCTYPE so that it is HTLM5, namely: <!DOCTYPE HTML>
W3 validation gives me this error: The font element is obsolete. Use CSS instead.
Is there an easy way to have different colors within the same paragraph or line as in the example above?
Thanks for your help.
Andynic
Formerly, I would change text color on the fly in a simple though clumsy way like this and it passed W3 validation:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Uitgeverij Tobi Vroegh</title>
</head>
<body >
<p>this is in black; <font style="color:red">and this is in red; </font><font style="color:black"> and back to black."</font></p>
</body>
</html>
W3 validation gives me this error: The font element is obsolete. Use CSS instead.
Is there an easy way to have different colors within the same paragraph or line as in the example above?
Thanks for your help.
Andynic