Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 114
    Fun fact - According to this logic then <body bgcolor="cabs"> test </body> would give you the color of a California Taxi Cab! The HQ of Netscape was in Mountain View, California!
    – WMRamadan
    Commented Apr 21, 2021 at 15:36
  • 113
    Fun fact #2 - Charmeleon, Ivysaur, and Squirtle will produce red, green, and blue colors respectively.
    – Leaf
    Commented Nov 14, 2021 at 12:55
  • 12
    Is the idea here that, if you're a programmer from some future society that uses 16 bits per color, present-day browsers will truncate them to the most significant 8 bits?
    – warmCabin
    Commented Dec 9, 2021 at 18:05
  • @warmCabin For proper colors at least I know it's possible to use more than 2 hex digits per color in modern browsers Commented Aug 2, 2022 at 8:31
  • 3
    There's one important rule missing: If first character of all components is "0", remove that character and then start truncacting to a lenght of two. All rules for this algorithm are listed here: html.spec.whatwg.org/multipage/…
    – n.r.
    Commented Apr 27, 2023 at 7:02