Home  >  Article  >  Web Front-end  >  HTML number values ​​of various common colors (collection)

HTML number values ​​of various common colors (collection)

PHPz
PHPzOriginal
2017-04-03 16:42:053654browse

In HTML, a color can be represented by a color name, RGB value, or HEX value.

RGB
rgb (red, green, blue) three variables are the concentrations of the three primary colors (0~255)
For example, rgb(255,0,0) red
                              rgb (0,0,0) black
rgb (255,255,255) white
HTML number values ​​of various common colors (collection)
HTML number values ​​of various common colors (collection)

HEX
hexadecimal represents a hexadecimal number
Decimal: 0~255 Convert hexadecimal: 00~ FF
HTML number values ​​of various common colors (collection)
HTML number values ​​of various common colors (collection)

The above is the detailed content of HTML number values ​​of various common colors (collection). For more information, please follow other related articles on the PHP Chinese website!

Statement:
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