ColorNameHex CodeRGB Code White#FFFFFFrgb(255, 255, 255) Silver#C0C0C0rgb(192, 192, 192) Gray#808080rgb(128, 128, 128) Black#000000rgb(0, 0, 0) Red#FF0000rgb(255, 0, 0) Maroon#800000rgb(128, 0, 0) Yellow#FFFF00
The three primary colors in hex-code, red, green and blue, could be formed by adding the highest intensity of the desired color with the lowest intensity of the other two colors. For example,HTML Colors (Color Codes) ExampleColor nameCode Red #FF0000 GREEN #00FF00 BLUE #0000FF...
There was a time where the HTML specification defined the color names that could be used within HTML documents. This is no longer the case — CSS has taken over the responsibility for defining colors within HTML documents. The following color code chart contains the 16 official HTML color names...
html backgound color codes, css color codes, hexadecimal color codes, rgb color codes and color names.
HTML CSS Scripting DatabaseHTML Text Color CodeYou can use the following HTML code to specify color text within your HTML documents.In HTML, color is applied using CSS (Cascading Style Sheets). More specifically, to set the foreground color of an element, you use the color property. To set...
HTML <head> <style> a { color: #FF0000; } /* CSS link color */ </style> </head> <body> <a href="http://example.com/">A Red Link</a> </body> Demo on CodePen For the examples in this tutorial we'll be using a Hex color code, but remember, there are many other possi...
For example, in HTML (HyperText Markup Language) tags and CSS (Cascading Style Sheets) that use color codes, you could use "red" instead of "#FF0000."Color NameColor CodeColor NameColor Code Red #FF0000 White #FFFFFF Cyan #00FFFF Silver #C0C0C0 Blue #0000FF Gray or Grey #808080 Dark...
Examples to Implement CSS Color Codes Below is an example to implement the same: Example #1 Using Hexadecimal Code to Background Color Code: <!DOCTYPE html> <html> <head> <title>Color Code</title> </head> <style> .header { text-align: center; ...
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.
Finally, here’s a handy CSS colors cheat sheet that covers color names, the associated hex code, and what the color looks like.HTML Color Name Hex Color Code Color Example white #FFFFFF ghostwhite #F8F8FF whitesmoke #F5F5F5 snow #FFFAFA ivory #FFFFF0 floralwhite #...