+ 14
Is there a color named "deep"?
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... https://code.sololearn.com/W58j62nNN1hA/?ref=app
22 ответов
+ 19
Maybe this old thread can help to describe why.
https://www.sololearn.com/Discuss/554275/?ref=app
+ 12
Oma Falk
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 😂
+ 8
Ipang your version sounds reasonable. 😉
+ 8
Wow that is really interesting. :D
+ 8
Amaranth Deep Purple
#9f2b68
Antarctic Deep
#35383f
Aqua Deep
#014b43
Atlantic Deep
#274e55
Deep Amethyst
#5b3082
Deep Aquamarine
#78dbe2
Deep Blue
#040273
Deep Blush
#e36f8a
Deep Bottlebrush
#5e675a
Deep Breath
#27275f
Deep Bronze
#51412d
Deep Cerulean
#007bbb
Deep Champagne
#fad6c5
Deep Chestnut
#b94e48
Deep Claret
#771133
https://code.sololearn.com/WtcVHJtWsTH3/?ref=app
+ 8
Oma Falk Color name with 10 characters length,
blackberry, watermelon, ...
https://code.sololearn.com/WEyqmjqHsynC/?ref=app
+ 7
"sololearn" makes a nice color too!
Sorry didn't fully understand your question.
really funny!
+ 7
Mahdee Mohammad Ipang
I made a challenge from it:
Enter a word with 10 characters and find the parsed color.
+ 7
I think this link will help you further to understand why?
:
https://stackoverflow.com/questions/8318911/why-does-html-think-chucknorris-is-a-color
edit:
https://code.sololearn.com/WFiumdIuGzud/?ref=app
+ 6
Mahdee Mohammad
man..... that's a real cool question!
+ 4
Ipang that's it!
+ 3
Oma Falk I didn't understand.
+ 3
Oma Falk Oh I got this. A little bug in HTML lol
+ 3
Oma Falk wow nice! It is quite a new thing to me that's why I asked. Hope I didn't offend.
+ 3
Schindlabua yeah! really it is!
+ 3
No, But every color has it's deep version.
+ 2
Really cool! Genius HTML!
+ 2
Martin Taylor great response, thanks for making those points
+ 2
Xylem Actually it does not need that much time to learn but I use to make projects after every lesson I finish. And I am not done yet.
+ 2
bell Chuck Norris only works in pure html.not in css
So also not in js.