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:
<code>#rrggbb</code>
Where:
- rr: Red (00-FF)
- gg: Green (00-FF)
- bb: Blue (00-FF)
How to use HTML color codes?
You can use color codes in HTML and CSS to set the color of elements.
HTML:
<p style="color: #ff0000;">这是红色的文本</p>
CSS:
p { color: #ff0000; }
HTML Color Code Chart
The following are commonly used HTML color codes:
- Black: #000000
- White: #FFFFFF
- Red: #FF0000
- Green: #00FF00
- Blue: #0000FF
- Yellow: #FFFF00
- Magenta: #FF00FF
- Cyan: #00FFFF
- Purple: #800080
- Gray: #808080
##Other HTML color codes:
Colors can also be specified using color names. Here are some commonly used color names:- aqua: #00FFFF
- fuchsia: #FF00FF
- lime:#00FF00
- maroon:#800000
- navy:#000080
- olive:#808000
- purple:#800080
- red:#FF0000
- silver:#C0C0C0
- teal:#008080
- white:#FFFFFF
- yellow :#FFFF00
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

WebStorm Mac version
Useful JavaScript development tools