freeCodeCamp Challenge Guide: Use Hex Code for Specific Colors

Use Hex Code for Specific Colors


Problem Explanation

With CSS, we use 6 hexadecimal number to represent colors. For example, #000000 is the lowest possible value, and it represents the color black.

This is the same as #RRGGBB which can also be simplified to #RGB.


Solutions

Solution 1 (Click to Show/Hide)
<style>
  body {
    background-color: #000000;
  }
</style>
2 Likes