answersLogoWhite

0

The HTML code for colors is a so called RGB (red, green blue) value. it is coded in a hexadecimal manner. The range gos from 00 to FF (0-255) for each color. The coding schema is #RRGGBB were RR stands for the red component GG for the green component and BB for the blue component. A value of #000000 is black, a value of #FFFFFF is white. a value of #FF0000 is red, a value of #00FF00 is green and a value of #0000FF is blue.

There is a improvement comming, conernihng RGBA values. The A stands for alpha amnd means transparency or translucency. This values are coded as #RRGGBBAA

In all cases, instead of two digits for one color you can use one digit per color, the second digit for each color will then be the same as the first. So for example, #FF44AA is the same as #F4A, and #333366 is the same as #336.

User Avatar

Wiki User

13y ago

Still curious? Ask our experts.

Chat with our AI personalities

FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
More answers

There is no html tag for colours. They can be specified through attributes in tags or by using styles:

<body bgcolor="red">

That would set the background color of the body of the page to be red. The following code sets text to be green:

<font color="green">This text will be green</font>

User Avatar

Wiki User

11y ago
User Avatar

<font color=pink > or anything like that just change pink to any color of your choice

User Avatar

Wiki User

16y ago
User Avatar

HTML Color Codes provide color to webpages. The code is inserted into the webpage coding to provide color to the area needed. There are a total of 17 standard colors plus 130 more.

User Avatar

Wiki User

11y ago
User Avatar

There are various color codes in HTML. There is a 6 digit Hex-code used to define colors.

User Avatar

Wiki User

10y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What are HTML Color Codes used for?
Write your answer...
Submit
Still have questions?
magnify glass
imp