Fix description explaining hexadecimal numbers

This commit is contained in:
Eric Leung
2015-11-24 22:22:30 -08:00
parent 102d2d8344
commit 3081033695

View File

@ -3769,7 +3769,7 @@
"title": "Use Hex Code for Specific Colors",
"description": [
"Did you know there are other ways to represent colors in CSS? One of these ways is called hexadecimal code, or <code>hex code</code> for short.",
"<code>Decimal</code> means the numbers zero through nine - the numbers that people use in everyday life. <code>Hexadecimal</code> includes these 10 numbers, plus the letters A, B, C, D, E and F. This means that Hexidecimal has a total of 16 possible values, instead of the 10 possible values that our normal base-10 number system gives us.",
"The word <code>Hexademical</code> can be broken down into the words <code>hexa</code> and <code>decimal</code>. You may be familiar with <code>decimal</code> being a number like 0.10 or 0.333. In CSS, <code>decimal</code> can be thought of as the numbers zero through nine, giving a total of ten numbers. The word <code>hexa</code>, as you might guess, means six. In CSS, this refers to the letters A, B, C, D, E, and F. Putting these together, each place value of a <code>hexadecimal</code> can be a number 0 to 9 or A through F, giving us a total of 16 possible values. You can find more information about hexadecimal numbers <a href=\"https://en.wikipedia.org/wiki/Hexadecimal\">here</a>",
"With CSS, we use 6 hexadecimal numbers to represent colors. For example, <code>#000000</code> is the lowest possible value, and it represents the color black.",
"Replace the word <code>black</code> in our <code>body</code> element's background-color with its <code>hex code</code> representation, <code>#000000</code> "
],