Hi. I was just experimenting with one of my codes and found out that "deep" is a valid color name in HTML. I also tried with other names such as "deep blue", "deep green", "deep red" but it generates unexpected output. Can you please tell me the reason behind it?
Code given below...
In the beginning I was thinking that "chucknorris" is translated into red because he makes fire everywhere he goes. So browsers render it in red in honour to his legend. And the browser vendors certainly didn't wanna mess with him 😂
Most (all?) official colour names do not have spaces in them...
Not all colours have names, there are over 16 million dfferent combinations in a 24-bit rgb value.
Some browsers may support X11 colour names as well as the html/css colour names, support a wider range of custom names, or allow spaces in quoted names.
Amaranth Deep Purple
I think this link will help you further to understand why?