Why is chuck norris red?

HTML was designed to be fool-proof, being able to handle errors and attempt to fix them silently. As such, using invalid colours in attributes are parsed and forced into a hexidecimal color.


First, whitespaces are removed and suffixed with zero's until it's dividable to three.

ChuckNorris0

Then it's split in three.

Chuc kNor ris0

Because a hex color is only two characters big, every part is truncated to two characters.

Ch kN ri

Finally non-hex characters are replaced with zero's and then the colors are joined back together so we have a our hex code.

C0 00 00

So what color is your name?