this question can create a misunderstanding: I know I have to use CSS to validate successfully my document as XHTML 1.0 Transitional. The fact is that I have to embed in my webpage a picture composed by zeros and ones created with text image, and the problem is that the code uses deprecated tag font and looks like this
<!-- IMAGE BEGINS HERE --> <pre> <font size='-3'> <font color='#000000'>0001100000101101100011</font> <font color='#010000'>00</font> <font color='#020101'>0</font> <font color='#040101'>0</font> <font color='#461919'>1</font> <font color='#b54f4f'>1</font> ...etc.etc... </font> </pre> <!-- IMAGE ENDS HERE -->
(In this code example I inserted a newline after each couple of tags to make it more readable, but the original code is all in one line because of the <pre> tag). The font’s color changes at least thousands times so I never considered to create a field in the CSS for each combination.Hope someone knows at least where to find a solution, I searched everywhere 🙂 Thanks
You could replace
<font color='#000000'>0001100000101101100011</font>with
<span style='color:#000000'>0001100000101101100011</span>etc…
*Edit: I know this is CSS, but it doesn’t involve a separate stylesheet like the question states, which may be ok.