473,396 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

HTML safe colors

Been awhile since I've done any significant html work. Was wondering
if I need to worry at all about colors and using html safe colors? I
can't imagine too many people browsing the web anymore at 256 colors.

Thanks,

Steve

Jul 20 '07 #1
12 2447
Zamdrist wrote:
Been awhile since I've done any significant html work. Was wondering
if I need to worry at all about colors and using html safe colors? I
can't imagine too many people browsing the web anymore at 256 colors.

Thanks,

Steve
W3Schools reports color usage at
<http://www.w3schools.com/browsers/browsers_display.asp>, about
half-way down the page. Note, however, that their audience is
somewhat specialized and does not reflect the general world.

Still, their comment about hand-held devices is important; there is
a growing audience who use cell phones to surf the Web. Although
not noted regarding screen resolution (the earlier tabulation on
the same page), resolution for hand-held devices should also be
considered.

--

David E. Ross
<http://www.rossde.com/>.

Don't ask "Why is there road rage?" Instead, ask
"Why NOT Road Rage?" or "Why Is There No Such
Thing as Fast Enough?"
<http://www.rossde.com/roadrage.html>
Jul 20 '07 #2
Scripsit David E. Ross:
Zamdrist wrote:
>Been awhile since I've done any significant html work. Was wondering
if I need to worry at all about colors and using html safe colors? I
can't imagine too many people browsing the web anymore at 256 colors.
- -
W3Schools reports color usage
It has been repeatedly said and demonstrated in this and other groups that
W3schools contains much rubbish, and it's unreliable as any kind of
reference.
Still, their comment about hand-held devices is important; there is
a growing audience who use cell phones to surf the Web.
That's irrelevant to the question about "HTML safe colors". If you use a
color that is not one of the colors supported by a display device, it will
be mapped to the nearest supported color. So what's the problem?

"Web-safe colors" were an issue years ago, relating to colors used in
_images_.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jul 20 '07 #3
Well bust mah britches and call me cheeky, on Fri, 20 Jul 2007 20:23:55 GMT
Zamdrist scribed:
Been awhile since I've done any significant html work. Was wondering
if I need to worry at all about colors and using html safe colors? I
can't imagine too many people browsing the web anymore at 256 colors.
Nah. It really isn't an issue anymore if you don't try to get too
"aesthetic" with your choices.

--
Neredbojias
Half lies are worth twice as much as whole lies.
Jul 20 '07 #4
On 7/20/2007 2:24 PM, Jukka K. Korpela wrote [in part]:
>
It has been repeatedly said and demonstrated in this and other groups that
W3schools contains much rubbish, and it's unreliable as any kind of
reference.
If you look at the trends reported by W3Schools and not the absolute
numbers, the statistics are supported by observations made by others.
It's unimportant whether IE's market share has dropped by 29.5% since
2003 (W3Schools) or 11.3% since 2005 (my own talley). It is important
that IE's share of the browser market has declined significantly.

As for color depth and display resolution, even if W3Schools' data is
off, there are still a number of users of 16-bit color (I use 32-bit
color) and 800x600 resolution (including me). Should we design our Web
pages only for 32-bit color and 1280x1024 resolution? I don't think so.

--

David E. Ross
<http://www.rossde.com/>.

Don't ask "Why is there road rage?" Instead, ask
"Why NOT Road Rage?" or "Why Is There No Such
Thing as Fast Enough?"
<http://www.rossde.com/roadrage.html>
Jul 21 '07 #5
Well bust mah britches and call me cheeky, on Sat, 21 Jul 2007 01:45:30 GMT
Jonathan N. Little scribed:
>Long, long ago with my nose press against a
whopping 14 incher the browser was set to max often!
I once had a girlfriend who said virtually the same thing.

--
Neredbojias
Half lies are worth twice as much as whole lies.
Jul 21 '07 #6
In article <11**********************@n60g2000hse.googlegroups .com>,
Zamdrist <za******@gmail.comwrote:
Been awhile since I've done any significant html work. Was wondering
if I need to worry at all about colors and using html safe colors? I
can't imagine too many people browsing the web anymore at 256 colors.
Back in 2000 there was an excellent WebMonkey article that explored the
concept of Web-safe colors and IMO pretty thoroughly shot holes in it.
I'm happy to see that the article is back online. It concludes, "We
found that only 22 of the 216 colors we began with did not end up being
shifted incorrectly in at least one viewing environment. So, it looks
like we have roughly 22 colors that are really websafe...[H]ope you like
green..."

http://www.webmonkey.com/00/37/index2a.html

I'd say that despite the growth of user agents (e.g. mobile phones) that
are less capable than what we've grown to expect, there's not much point
in worry about Web safe colors.

--
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more
Jul 21 '07 #7
That's irrelevant to the question about "HTML safe colors". If you use a
color that is not one of the colors supported by a display device, it
will be mapped to the nearest supported color. So what's the problem?
The original problem was that if you used an "unsafe" colour some
combinations of browser/display adapter tried to display the colour by
using a dithering technique which resulted in some weird-looking
patterns appearing.

I would doubt that this is much of a problem any longer. Someone with a
256 colour display probably doesn't matter much anyway. :-)

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Jul 23 '07 #8
rf

"Steve Swift" <St***********@gmail.comwrote in message
news:46******@news.greennet.net...
>That's irrelevant to the question about "HTML safe colors". If you use a
color that is not one of the colors supported by a display device, it
will be mapped to the nearest supported color. So what's the problem?

The original problem was that if you used an "unsafe" colour some
combinations of browser/display adapter tried to display the colour by
using a dithering technique which resulted in some weird-looking patterns
appearing.
Nope. The original problem was with images, at the time gifs. A gif has a
256 colour palette and if there are more than one of them on a page then the
different colours in each of their palettes would add up to more than the
256 colours that 8 bit colour cards could handle.

The first gif would display correctly as each of its colours (well most of
them, as there are only 240 colours available) would map into an empty
palette register. But each subsequent gif would be limited to those colours
that had already been loaded.

Paint a nice sunset in varying shades of red and pink, use up the palette,
your next gif of a blue and green ocean would be trashed.

The browsers did not do any dithering, ever. Nor did the hardware. It was
merely a lack of available colours in the palette. A hardware problem. I
wrote an article about this in the 90's. Must dig it up.
I would doubt that this is much of a problem any longer.
No, its no longer a problem. And, in fact it was and sometimes still is
detrimental. The "colour safe" colours do *not* map into a 16 bit colour
space. There was a while there when all sorts of artefacts appeared, image
background colours not matching with the page background and so on. I wonder
if some of these new telephones have 16 bit colour?
Someone with a 256 colour display probably doesn't matter much anyway.
:-)
And they are used to seeing green people :-)

--
Richard.
Jul 23 '07 #9
On 23 Jul, 11:43, "rf" <r...@invalid.comwrote:
Nope. The original problem was with images, at the time gifs. A gif has a
256 colour palette
Although you make a reasonable point about GIFs also suffering, the
"web safe" palette wasn't aimed as a solution to this, nor did it
actually help much. Palette-based limits (like GIF) never cared what
the colours were, merely that you couldn't have too many different
entries in effect at the same time. The "web safe colour set" also
restricted the _choice_ of these colour entries, for reasons that were
tenuous and transient even back then.

Jul 23 '07 #10
"rf" <rf@invalid.comwrites:
No, its no longer a problem. And, in fact it was and sometimes still is
detrimental. The "colour safe" colours do *not* map into a 16 bit colour
space. There was a while there when all sorts of artefacts appeared, image
background colours not matching with the page background and so on. I wonder
if some of these new telephones have 16 bit colour?
Most cheap LCD displays have 18-bit color. They accept 24-bit color as input
and downconvert it.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
Jul 23 '07 #11
In article <11**********************@n60g2000hse.googlegroups .com>,
Zamdrist <za******@gmail.comwrote:
>Been awhile since I've done any significant html work. Was wondering
if I need to worry at all about colors and using html safe colors? I
can't imagine too many people browsing the web anymore at 256 colors.
I do, when accessing a remote computer over a VNC connection. 256
colors consumes less bandwidth and the display updates faster.

-A
Jul 24 '07 #12
The browsers did not do any dithering, ever. Nor did the hardware. It was
merely a lack of available colours in the palette. A hardware problem. I
wrote an article about this in the 90's. Must dig it up.
Ah, the 90's. I'm not into such newfangled stuff. I'm talking about an
era before there was Netscape. Windows 3.1 stuff. These dinosaurs
definitely dithered what should be a uniform background if you didn't
use the hallowed colours. How else would you render "peach" on hardware
that supported a generous 16 colours?

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Jul 31 '07 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Yarik | last post by:
Hello, When I open an HTML document by Internet Explorer 6 and then print the document on a color inkjet printer, some of the colors are rendered incorrectly (they appear much darker than they...
10
by: Thomas Mlynarczyk | last post by:
Hi, Can I style the root element (HTML) just like any other (and will it work as expected) or are there restrictions to take into account? Thanks in advance, Thomas
3
by: billie | last post by:
Hi all. I need to insert a Python source in an HTML page mantaining to coloration gives by the IDE. I tried the export function of scite but it does not generate a proper HTML code that permit me...
6
by: Danny Lesandrini | last post by:
I'm using an Access database to drive a web site and the colors of various table backgrounds are stored in Access. I want users of the Access database to be able to select colors for the site, but...
6
by: Rasmus | last post by:
I've been using enum as input parameter to methods in the belief that this was a safe method of restricting the input parameters, but the example below proves me wrong. Is there a way to prevent...
12
by: Nalaka | last post by:
Hi, I suddenly started getting a lot of errors from html validation (some CSS) so I followed the following instructions to disable it. If you'd rather not have these types of HTML validation...
2
by: Tina | last post by:
how can I find out the name of the html color #COFFFF. More specifically I need to find a way in code to convert any html color to the english name. ColorTranslator doesn't seem to do it. ...
1
by: vozzek | last post by:
Hi everyone, Forgive my newbie PHP skills, but I'm trying to learn. I've got a recordset on my detail page that can hold up to 5 possible colors for an item. For example, let's say...
7
by: imtmub | last post by:
I have a page, Head tag Contains many Scripts and style sheet for Menu and Page. This code working fine and displaying menus and page as i wanted. Check this page for reference....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.