In strict, getting errors for <font color=#FFFFFF>text</font> Is it not ok to use that? What would be the compliant way to do that please?
Isn’t <font> deprecated? Use CSS.
Even if you’re going to use it, you’re not using quotes on your value: <font color=“#FFFFFF”>
Trying to do it inline, as it only applies to one word in one page on the whole site.
The font tag is depreciated, use a span with a style tag, or make a CSS class (if it is more than once per page) or ID (if once).
Darn, I’m trying <span style=“color #ffffff”> and that isn’t working either!! ;-(
Try <span style=“color: #ff0000”>My red text</span>
Most styling tags from HTML 3.2 are not available in HTML 4.01 strict and will create a validation error when used. These include but aren’t limited to <font><center> and attributes for the same (The bgcolor attribute of the body tag).
You have a missing colon (not you exactly but the rule above :)). See EarlyOut’s code for a correct example.
As an aside you should avoid inline styling like that and instead style via context if possible or use a class on the span.
“If you or a member of your family ever took the prescription drug Zovuvazz, and now suffer from a missing colon, you may be entitled to compensation. Contact the law offices of Dewey, Cheatham, and Howe.”
Many thanks Paul, Michael and earlyout - all solved