How can I apply colour tag by hexadecimal number? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I apply colour tag by hexadecimal number?

4th Dec 2015, 8:25 AM
akash
19 Answers
+ 11
Write the code out like normal but instead of color=color make it color=hexcode so like color=#FFFFFF. Remember to get that # in there.
19th Dec 2015, 6:32 PM
Charley
Charley - avatar
+ 3
You can also use color: rgb(235,230,200);
19th Feb 2016, 3:50 PM
Randy Sanchez II
Randy Sanchez II - avatar
+ 3
Use rgb
30th May 2016, 2:43 PM
Raj
Raj - avatar
+ 3
to use color code in hex you add the symbol# and then write the three or six digit code. color is not a tag it is an attribute
2nd Nov 2016, 5:46 PM
Sandeep Chatterjee
+ 2
you can use this style color:#000000; or color:#000; if use 6 digit each double digit is one color otherwise if use 3 digit each on digit is one color that it's work like RGB
16th Feb 2016, 11:40 PM
masuod
masuod - avatar
+ 2
we write the hex color code like this color: #ffffff.This is white color.Hex code consists numbers 0-9 and A-F. surf the net and find out different colors.u can use colorpicker .we can also use rgb(255,0,0) format too
1st Jun 2016, 3:42 PM
Bathini Pranay kumar
Bathini Pranay kumar - avatar
+ 2
Color = "hex" when inline html Color: hex; when in css Hexadecimal is base 16 We use numbers of base 10 Binary is base 2 Base simply means the amount of symbols that are used as values. Hex uses 0-9 and A-F for a total of 16 symbols. You should learn RGB before you learn hex colors though because RGB are three numbers from 0-255 that indicate the amount of red, green, and blue in that certain color. Hex numbers have six characters representing RGB values. Split the hex numbers into sets of two for conversions. Each set of two will multiple with each other to make a number within the range of 0-255. Eventually giving you your RGB color values. So FF is actually 15*15 which gives you 255 to represent the full use of that single red green or blue color. Hope this helped. :)
5th Sep 2016, 8:58 AM
nk361
nk361 - avatar
+ 1
<font color=#ffffff> TEXT </font>
23rd Mar 2016, 6:02 PM
Christian Arevalo
Christian Arevalo - avatar
+ 1
you need to know the hexadecimal code for the color you want which start from 0 - f, apply the # tag before the hexadecimal code e.g #000000 or #ffffff.
2nd Sep 2016, 6:02 PM
Araromi Damilola
Araromi Damilola - avatar
0
you can add css style code for eg:- <p style="color:#ffffff">Your Text </p>
28th Feb 2016, 7:29 PM
Ashraf Choudhary
Ashraf Choudhary - avatar
0
<head> <style> p { color: #46004c } I used inskscape colors capture.
31st May 2016, 4:03 AM
Erika Maria N. S. Cardoso
0
You can use color: #678823;
1st Jun 2016, 4:49 AM
Yugal Kishor
Yugal Kishor - avatar
0
in hex format the colors are red, red, green, green, blue, blue. so the values of the first 2 digits affect only the Red hue...the second 2 the green and last 2 blue. Thus color="AA0099" would produce a purple hued value (I get green and blue mixed up sometimes so if I do this time sorry...and just swap the digits as I stated for green and blue!)
2nd Jun 2016, 11:31 PM
Estes Daugherty
Estes Daugherty - avatar
0
whenever you want to apply colour in any of the HTML programs instead of specifying the name of colour it has some specific hexadecimal code related to it.
3rd Jun 2016, 4:02 PM
ADITY Chakraborty
ADITY Chakraborty - avatar
0
use rgb color scheme. put rgb hexa value. e.i color:#rgb or color=#rgb
8th Jun 2016, 7:16 PM
mrThirteen ras
mrThirteen ras - avatar
0
if you want to use hexadecimal number to apply colour tag, you need to look carefully at your number. The first two digit is represent red, third and fourth represent blue, while fifth and sixth represent green. You can put a number from 0 to 9 or an Alphabet from A to F, with alphabet is higher than a number. So the minimum value is 0 and maximum is F. for example #0000FF will result in green color.
7th Oct 2016, 8:10 AM
Krisna A. Haryadi
Krisna A. Haryadi - avatar
- 1
Use an CSS style to color tag like color:red;
31st May 2016, 10:17 AM
Daniyal Hussain Siddiqui
Daniyal Hussain Siddiqui - avatar
- 2
ofcourse u can
31st May 2016, 3:33 AM
Navneet chandra
Navneet chandra - avatar
- 3
Yes can.
28th May 2016, 3:06 AM
Jacques-Mary Désir
Jacques-Mary Désir - avatar