G'day


Alan Trick wrote:
I was just reading through the Web authoring standards document at http://www.htmlhelp.com/design/standards.html and I noticed the line

Authors MAY use any legal markup to determine document colours, but SHOULD use RGB specifications to do so.

Does that mean that hex values or color names are not as good? Why?

#fff is rgb as well. See http://www.w3.org/TR/CSS1#color-units :

"The RGB color model is being used in numerical color specifications. These examples all specify the same color:

EM { color: #f00 }              /* #rgb */
EM { color: #ff0000 }           /* #rrggbb */
EM { color: rgb(255,0,0) }      /* integer range 0 - 255 */
EM { color: rgb(100%, 0%, 0%) } /* float range 0.0% - 100.0% */

The format of an RGB value in hexadecimal notation is a '#' immediately followed by either three or six hexadecimal characters"

I see nothing there that says we *have to* use the long-winded rgb(255,255,255) approach.


Regards -- Bert Doorn, Better Web Design http://www.betterwebdesign.com.au/ Fast-loading, user-friendly websites

******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to