PDA

View Full Version : Updated html for font colors


puertoblack2003
05-27-2010, 08:46 PM
I was wondering what is the latest font colors html format for today html web page?

jamesyfx
05-30-2010, 07:27 PM
Hi,

I'm assuming you use the code:

<font color="#000000">Text to be coloured</font>

This is invalid code, as it is depreciated, but it will still work. Your website simply won't validate as XHTML 1.0 (Which vBulletin 3 is written in).


Alternatively, you can use this code:

<span style="color: #000000">Text to be coloured</span>

It produces the same results, and it is XHTML valid. All the colours you wish to use will stay the same. You can still use words like black, yellow, orange, etc.

Hope this helps.

puertoblack2003
06-01-2010, 01:08 PM
Hi,

I'm assuming you use the code:

<font color="#000000">Text to be coloured</font>

This is invalid code, as it is depreciated, but it will still work. Your website simply won't validate as XHTML 1.0 (Which vBulletin 3 is written in).


Alternatively, you can use this code:

<span style="color: #000000">Text to be coloured</span>

It produces the same results, and it is XHTML valid. All the colours you wish to use will stay the same. You can still use words like black, yellow, orange, etc.

Hope this helps.


yes, i do have the font class thanks for the info :up: