on-internet
← Community

Why does HTML think “chucknorris” is a color?

Stack Overflow ·

Why do certain random strings produce colors when entered as background colors in HTML? For example, bgcolor="chucknorris" produces a red background: <body bgcolor="chucknorris"> test </body> Conversely, bgcolor="chucknorr" produces a yellow background: <body bgcolor="chucknorr"> test </body> This holds true across various browsers and platforms. What’s going on here?

Comments

Sign in or sign up to comment and upvote.

No comments yet.