HTML color codes are 6-digit hexadecimal codes that specify RGB values for web page colors. You can set the color of text, background, and other elements by using code of the format #rrggbb in HTML or CSS. Commonly used HTML color codes include black, white, red, green, blue, yellow, magenta, cyan, purple, etc. Additionally, colors can be specified using color names (such as aqua, red, etc.).
HTML color code table collection
What are HTML color codes?
HTML color codes are 6-digit hexadecimal codes used to specify the color of text, background, and elements on web pages. It consists of a pound sign (#) followed by 6 digits representing red, green, and blue (RGB) values.
Color code format:
#rrggbb
Where:
How to use HTML color codes?
You can use color codes in HTML and CSS to set the color of elements.
HTML:
这是红色的文本
CSS:
p { color: #ff0000; }
HTML Color Code Chart
The following are commonly used HTML color codes:
##Other HTML color codes:
Colors can also be specified using color names. Here are some commonly used color names:The above is the detailed content of Complete html color code table. For more information, please follow other related articles on the PHP Chinese website!