<story><title>Why does HTML think “chucknorris” is a color? (2011)</title><url>https://stackoverflow.com/questions/8318911/why-does-html-think-chucknorris-is-a-color</url></story><parent_chain></parent_chain><comment><author>tobyjsullivan</author><text>This definitely corrects a misconception I&amp;#x27;ve had for years.&lt;p&gt;When I first started writing HTML, I would set colours using the english colour names, for example color=&amp;quot;red&amp;quot; or color=&amp;quot;white&amp;quot; and this worked well for my needs.&lt;p&gt;However, I would always get an odd result when I tried to set the colour grey. Turns out, I didn&amp;#x27;t spell very well (I was pretty young at the time, though still spell atrociously).&lt;p&gt;&amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;&lt;p&gt;And the colour would come out green. What?&lt;p&gt;I quickly realised my spelling error but wondered why things ended up green. I decided what was happening was that the interpreter read the colour name up until the first invalid character (in this case resulting in &amp;quot;gr&amp;quot;), then chose the closest match. Green would be before grey in alphabetical order and... voila!&lt;p&gt;I see now the solution was simply that gray was interpreted as 00 a0 00. Another life mystery solved!</text></comment>
<story><title>Why does HTML think “chucknorris” is a color? (2011)</title><url>https://stackoverflow.com/questions/8318911/why-does-html-think-chucknorris-is-a-color</url></story><parent_chain></parent_chain><comment><author>biot</author><text>As Seen on HN™ &lt;a href=&quot;https://www.hnsearch.com/search#request/submissions&amp;amp;q=chucknorris&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;www.hnsearch.com&amp;#x2F;search#request&amp;#x2F;submissions&amp;amp;q=chuckn...&lt;/a&gt;</text></comment>