Home > Web Front-end > Front-end Q&A > What does #999 mean in html5

What does #999 mean in html5

WBOY
Release: 2022-09-13 16:35:33
Original
5861 people have browsed it

In HTML5, "#999" or "#999999" represents a color, which is represented by a hexadecimal color code; "#999999" starts with "#" The hexadecimal value represents a color. The 6-digit number is divided into 3 groups, each group has two digits, which in turn represents the intensity of the three colors red, green, and blue.

What does #999 mean in html5

The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.

What does #999 mean in html5

"#999" or "#999999" means a color

in RGB In color mode, hexagonal triple #999999 has decimal exponent: 10066329, consisting of 60% red, 60% green and 60% blue. #999999 in CMYK color mode, consists of 0% cyan, 0% magenta, 0% yellow and 40% Black. #999999 is a web safe color.

What does #999 mean in html5

Other representation methods

  • Hexadecimal code :#999999

  • RGB:rgb(153,153,153)

  • ##RGB %:rgb(60%,60%,60%)

  • HSL %:hsl(0,0%,60%)

The hexadecimal color code is the code for setting the color value in the software . In many software, you will encounter the problem of setting color values. The source of development is that there are two colors seen by human eyes: one is the color emitted by the luminous body, such as the color displayed on the computer monitor screen; the other is the color of the object Does not emit light itself, rather the reflected light produces a hexadecimal color.

For example, as defined in the HTML Language Specification, colors can be specified in two ways.

⒈ One way is to use defined color names. The specific color names are different for different browsers.

⒉ Another way is to represent a color through a 6-digit hexadecimal value starting with "#". The 6-digit numbers are divided into 3 groups, with two digits in each group, representing the intensity of the three colors red, green, and blue in turn. In RGB color mode, color is represented by three numerical values ​​indicating the intensity of the red, green, and blue components. From the minimum value 0 to the maximum value 255, when all colors are displayed at their lowest values, the color will be black, and when all colors are displayed at their maximum values, the color will be white. However, one confusing aspect of the RGB color model is that all of these colors may be represented in a variety of ways.

Color science describes colors in the range 0.0 to 1.0 (minimum to maximum). Most color conventions take these values ​​to represent color variations. For example, 1.0,0.0,0.0 represents maximum intensity of red.

Other ways of representing color values ​​are by using percentages from 0% to 100% (minimum to maximum). This is the same method as above, to change the range from 0.0 to 1.0, simply multiply the number with 100.

Color values ​​may also be represented as numbers ranging from 0 to 255. This type of numerical representation is widely implemented by computer programmers to store each color value in an 8-bit byte. Full intensity red is represented as 255,0,0. Likewise the range, 0 to 255, and hexadecimal numbers in this range are usually written in a fixed two-digit format, representing it and represented in hexadecimal, in some cases prefixed (like #). Full intensity red written as #ff, #00, #00. This may be shrunk like #ff0000.

(Learning video sharing:

css video tutorial, html video tutorial)

The above is the detailed content of What does #999 mean in html5. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template