Why does HTML think “chucknorris” is a color?
Asked 07 September, 2021
Viewed 839 times
  • 56
Votes

Why do certain random strings produce colors when entered as background colors in HTML?

For example:

<body bgcolor="chucknorris"> test </body>

...produces a document with a red background across all browsers and platforms.

On the other hand, chucknorr produces a yellow background!

What’s going on here?

10 Answer